[MOBY-guts] biomoby commit
Paul Gordon
gordonp at dev.open-bio.org
Tue Apr 3 02:33:57 UTC 2007
gordonp
Mon Apr 2 22:33:57 EDT 2007
Update of /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui
In directory dev.open-bio.org:/tmp/cvs-serv6913/src/main/ca/ucalgary/seahawk/gui
Modified Files:
MobySecondaryInputGUI.java
Log Message:
Added paste functionality miscellanea, and better tab interaction (close icon, ctrl-T for new)
moby-live/Java/src/main/ca/ucalgary/seahawk/gui MobySecondaryInputGUI.java,1.3,1.4
===================================================================
RCS file: /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobySecondaryInputGUI.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobySecondaryInputGUI.java 2007/03/27 14:02:53 1.3
+++ /home/repository/moby/moby-live/Java/src/main/ca/ucalgary/seahawk/gui/MobySecondaryInputGUI.java 2007/04/03 02:33:57 1.4
@@ -33,6 +33,7 @@
private Map data2widget;
private ActionListener listener;
private int handlerCode = 0; // callback event ID provided by caller to c-tor
+ private boolean showingNew = false;
private static org.apache.log4j.Logger logger = org.apache.log4j.Logger.getLogger(MobySecondaryInputGUI.class);
@@ -50,6 +51,7 @@
listener = al;
handlerCode = actionCommandID;
setVisible(false);
+ showingNew = false;
setName(TITLE);
}
@@ -166,11 +168,20 @@
pack();
toFront();
requestFocus();
+ showingNew = true;
confirmButton.requestFocusInWindow();
}
}
}
+ public boolean isNewShowing(){
+ boolean ret = showingNew;
+ if(ret){
+ showingNew = false;
+ }
+ return ret;
+ }
+
public Component makeWidget(MobyDataSecondaryInstance msdi){
String dataType = msdi.getDataType();
More information about the MOBY-guts
mailing list