Update of /cvsroot/btrwiz/btrwiz/src
In directory usw-pr-cvs1:/tmp/cvs-serv25849
Modified Files:
ExcludeFilters.java
Log Message:
add & remove options
Index: ExcludeFilters.java
===================================================================
RCS file: /cvsroot/btrwiz/btrwiz/src/ExcludeFilters.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ExcludeFilters.java 17 Jul 2002 15:07:31 -0000 1.1
--- ExcludeFilters.java 17 Jul 2002 18:24:41 -0000 1.2
***************
*** 14,18 ****
private GtkVBox content;
!
private GtkListStore filtList;
--- 14,18 ----
private GtkVBox content;
! private GtkEntry addTxt;
private GtkListStore filtList;
***************
*** 33,36 ****
--- 33,48 ----
GtkLabel curFiltLbl = new GtkLabel( messages.getString("CurExcFilters") );
content.add(curFiltLbl);
+
+ GtkHBox addSpace = new GtkHBox(false, 2);
+ addTxt = new GtkEntry();
+ addSpace.add(addTxt);
+ GtkButton addBtn = new GtkButton( messages.getString("AddExcFilt") );
+ addBtn.signalConnect("clicked", "addFilter", this);
+ addSpace.add(addBtn);
+ content.add(addSpace);
+
+ GtkButton rmBtn = new GtkButton( messages.getString("RmExcFilt") );
+ rmBtn.signalConnect("clicked", "rmSelected", this);
+ content.add(rmBtn);
***************
*** 38,40 ****
--- 50,66 ----
setContent(content);
}
+ /**
+ * Event handler for pressing of 'add' button.
+ */
+ private void addFilter(){
+ System.out.println(addTxt.getText());
+ }
+
+ /**
+ * Event handler for pressing of 'remove' button.
+ */
+ private void rmSelected(){
+ System.out.println("Remove Selected");
+ }
+
}
|