|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
jview.JExitFrame
jview.JConfirmExitFrame
jview.JBorderFrame
jview.JOpenFrame
jview.JClientFrame
stella.jview.JMasterDisplay
stella.jview.JDatabaseDisplay
stella.jview.JResultsPanel
public class JResultsPanel
This class delivers a displayable that is ment to display lately obtained results from SES and Wifsip in a continuous fashion.
| Nested Class Summary | |
|---|---|
static class |
JResultsPanel.Show
Test. |
| Nested classes/interfaces inherited from class jview.JClientFrame |
|---|
JClientFrame.ClientListener |
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
private Map<String,Object> |
cache
We cache the last valid object on each telescope, to decide updates. |
private static String |
DEFBINDNAME
The default target name field in the database |
private static int |
DEFDONELIMIT
The default limit. |
private static String |
DEFDURATIONFIELD
The default target name field in the database |
private static String |
DEFMERITFIELD
The default target name field in the database |
private static String |
DEFOBJECTFIELD
The default target name field in the database |
private static String |
DEFPIFIELD
The key to the merit column name in the database. |
private static String |
DEFPROPOSALPROPID
The key to the telescope name in the database. |
private static long |
DEFSESMINDURATION
The default minimum duration for ses. |
private static String |
DEFSTARTFIELD
The default target name field in the database |
private static String |
DEFSUCCESSFIELD
The default target name field in the database |
private static String |
DEFTASKOBJECT
The key to the merit column name in the database. |
private static String |
DEFTASKPROPID
The key to the telescope name in the database. |
private static String |
DEFTASKTELESCOPE
The key to the telescope name in the database. |
private static String |
DEFTELESCOPEFIELD
The default target name field in the database |
private static String |
DEFUNIQUEFIELD
The default target name field in the database |
private static long |
DEFWIFSIPMINDURATION
The default minimum duration for wifsip. |
static String |
KEY_DONELIMIT
Limit the SQL queries to this length. |
static String |
KEY_DURATIONFIELD
The key to the duration column name in the database. |
static String |
KEY_MAXLENGTH
Limit the list length to this length. |
static String |
KEY_MERITFIELD
The key to the merit column name in the database. |
static String |
KEY_OBJECTFIELD
The key to the object name in the database. |
static String |
KEY_PIFIELD
The key to the merit column name in the database. |
static String |
KEY_PROPOSALPROPID
The key to the telescope name in the database. |
static String |
KEY_SESMINDURATION
Minimum duration to be considered on SES. |
static String |
KEY_STARTFIELD
The key to the start in the database. |
static String |
KEY_SUCCESSFIELD
The key to the success column name in the database. |
static String |
KEY_TASKOBJECT
The key to the merit column name in the database. |
static String |
KEY_TASKPROPID
The key to the telescope name in the database. |
static String |
KEY_TASKTELESCOPE
The key to the telescope name in the database. |
static String |
KEY_TELESCOPEFIELD
The key to the telescope name in the database. |
static String |
KEY_UNIQUEFIELD
The key to the unique identifier in the database. |
static String |
KEY_WIFSIPMINDURATION
Minimum duration to be considered on Wifsip. |
static String |
PREFIX_NOTARGET
Targets that are explicedly blocked are this plus telescope name. |
static String |
PREFIX_NOUSER
Users that are explicedly blocked are this plus telescope name. |
static String |
PREFIX_YESTARGET
Targets that are explicedly allowed are this plus telescope name. |
static String |
PREFIX_YESUSER
Users that are explicedly allowed are this plus telescope name. |
private JPanel |
result
The central panel, where results are displayed. |
static String |
SES
DB name of STELLA-1, also SES button action. |
static String |
SESLABEL
Label on the STELLA-1 (SES) button. |
private MyList |
sesunique
The list of unique ids in SES. |
static String |
WIFSIP
Label on the STELLA-1 (SES) button. |
static String |
WIFSIPLABEL
Label on the STELLA-2 (Wifsip) button. |
private MyList |
wifunique
The list of unique ids in Wifsip. |
| Fields inherited from class stella.jview.JDatabaseDisplay |
|---|
ISODATE, KEY_USERNAME |
| Fields inherited from class stella.jview.JMasterDisplay |
|---|
KEY_BINDNAME, KEY_DISABLEWHILELOAD, KEY_REFRESH, KEY_ROBOTPROPS, KEY_ROBOTSEQUENCE, KEY_SWITCHMONITOR, KEY_TELESCOPECHAR |
| Fields inherited from class jview.JClientFrame |
|---|
CONNECTACTION, DISCONNECTACTION, KEY_CONNECTONINIT, KEY_ICONCONNECT, KEY_ICONDISCONNECT |
| Fields inherited from class jview.JOpenFrame |
|---|
EMPTYACTION, EXITACTION, EXPORTACTION, KEY_FILEACTIONS, KEY_FILEHOME, OPENACTION, PRINTACTION, SAVEACTION |
| Fields inherited from class jview.JBorderFrame |
|---|
DATACLEANSE, KEY_ABOUTURL, KEY_ACTIONCLASS, KEY_AIPLOGO, KEY_BIGGERSTRUT, KEY_DATAANALYSER, KEY_EASTALIGNMENT, KEY_FITTERS, KEY_FITTERTIPS, KEY_HELPSIZE, KEY_LESSERSTRUT, KEY_NOLOGO, KEY_NORTHALIGNMENT, KEY_SOUTHALIGNMENT, KEY_WESTALIGNMENT, MODELFITTER |
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface stella.sql.PsqlTables |
|---|
DEFDONETABLE, DEFENVTABLE, DEFOBJID, DEFOBSTABLE, DEFPERMISSIONTABLE, DEFPROPOSALTABLE, DEFREDUCEDTABLE, DEFTARGETTABLE, DEFTASKTABLE, DEFUSERTABLE, KEY_DONETABLE, KEY_ENVTABLE, KEY_OBJID, KEY_OBSTABLE, KEY_PERMISSIONTABLE, KEY_PROPOSALTABLE, KEY_REDUCEDTABLE, KEY_TARGETTABLE, KEY_TASKTABLE, KEY_USERTABLE |
| Fields inherited from interface jview.ClientLabels |
|---|
KEY_CONNECTERROR, KEY_CONNECTTITLE, KEY_DISCONNECTERROR |
| Fields inherited from interface jview.BorderLabels |
|---|
KEY_ABOUT, KEY_ABOUTACC, KEY_FILEACCS, KEY_FILEITEMS, KEY_FILEMENU, KEY_FILEMNEMONIC, KEY_HELPMENU, KEY_HELPMNEMONIC, KEY_HELPTITLE, KEY_NOHELP, KEY_NOURLACCESS, KEY_TITLE |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
JResultsPanel(LocalizedSupplying prop)
Constructs a new results panel. |
|
| Method Summary | |
|---|---|
void |
actionPerformaed(ActionEvent ae)
We listen to action on the Wifsip and SES button. |
protected List<Object> |
getBottomItems()
We do not display a status bar at the bottom. |
protected List<Object> |
getLeftItems()
The list of left items is the ses button and the list of ids. |
Component |
getRepresentation()
The component we deliver in the center is a panel with a card layout. |
protected Map<String,Method> |
getRequestedFields()
Returns the data that should be retrieved from the done table. |
protected List<Object> |
getRightItems()
Right panel, wifsip button plus list. |
protected String |
getTableName()
Returns the done table as our primary request table. |
void |
init()
We set our default close operation to nothing, allowing confirmed exit. |
boolean |
isFixedRate()
false. |
protected boolean |
processExternally(HistoryAware.Pick pick)
If data was not available on the local resources, but should be retrieved using external storage, processLocally(stella.HistoryAware.Pick) should return false, in
which turn we end up here. |
protected boolean |
processLocally(HistoryAware.Pick pick)
This method is called firstly when a pick event is received. |
void |
refresh()
We query the most recent ID's on both telescope. |
void |
setComposedProperties(LocalizedSupplying prop)
Denies display of the AIP logo to the right. |
private void |
updateList(MyList column,
Map<String,List<Object>> done,
String telescope)
We update the list on the left or right side. |
void |
valueChanged(ListSelectionEvent lse)
We listen to a list selection on either the SES or the WiFSIP list of recent observations. |
| Methods inherited from class stella.jview.JDatabaseDisplay |
|---|
getRequestedNames, getResultSetMethod, getUserName, lookUp, queryDatabase, queryDatabase, queryDatabase, queryDatabase, querySingle, querySingle |
| Methods inherited from class stella.jview.JMasterDisplay |
|---|
connect, disconnect, execute, execute, getIcon, getRefreshInterval, openFile, processPick, processPick, scanDir |
| Methods inherited from class jview.JClientFrame |
|---|
abolishConnection, actionPerformed, createConnect, establishConnection, exit |
| Methods inherited from class jview.JConfirmExitFrame |
|---|
disposeAndExit, disposeImmediately |
| Methods inherited from class jview.JExitFrame |
|---|
setVisible |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface util.Refreshing |
|---|
getRefreshInterval |
| Methods inherited from interface java.awt.event.ActionListener |
|---|
actionPerformed |
| Methods inherited from interface util.LocalizedComposed |
|---|
getComposedProperties |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public static final String SESLABEL
public static final String SES
public static final String WIFSIPLABEL
public static final String WIFSIP
public static final String PREFIX_NOTARGET
public static final String PREFIX_YESTARGET
public static final String PREFIX_NOUSER
public static final String PREFIX_YESUSER
public static final String KEY_SESMINDURATION
public static final String KEY_WIFSIPMINDURATION
public static final String KEY_DONELIMIT
public static final String KEY_MAXLENGTH
public static final String KEY_TELESCOPEFIELD
public static final String KEY_UNIQUEFIELD
public static final String KEY_OBJECTFIELD
public static final String KEY_STARTFIELD
public static final String KEY_DURATIONFIELD
public static final String KEY_SUCCESSFIELD
public static final String KEY_MERITFIELD
public static final String KEY_PIFIELD
public static final String KEY_TASKOBJECT
public static final String KEY_TASKTELESCOPE
public static final String KEY_TASKPROPID
public static final String KEY_PROPOSALPROPID
private static final String DEFBINDNAME
private static final String DEFTELESCOPEFIELD
private static final String DEFUNIQUEFIELD
private static final String DEFOBJECTFIELD
private static final String DEFSTARTFIELD
private static final String DEFDURATIONFIELD
private static final String DEFSUCCESSFIELD
private static final String DEFMERITFIELD
private static final String DEFPIFIELD
private static final String DEFTASKOBJECT
private static final String DEFTASKTELESCOPE
private static final String DEFTASKPROPID
private static final String DEFPROPOSALPROPID
private static final int DEFDONELIMIT
private static final long DEFSESMINDURATION
private static final long DEFWIFSIPMINDURATION
private MyList sesunique
private MyList wifunique
private JPanel result
private Map<String,Object> cache
| Constructor Detail |
|---|
public JResultsPanel(LocalizedSupplying prop)
throws RemoteException
RemoteException| Method Detail |
|---|
public void init()
JMasterDisplay
init in interface Initializableinit in class JMasterDisplaypublic void setComposedProperties(LocalizedSupplying prop)
setComposedProperties in interface LocalizedAwaresetComposedProperties in class JDatabaseDisplaypublic Component getRepresentation()
getRepresentation in interface DisplayablegetRepresentation in class JBorderFramepublic void actionPerformaed(ActionEvent ae)
public void valueChanged(ListSelectionEvent lse)
valueChanged in interface ListSelectionListenerpublic boolean isFixedRate()
isFixedRate in interface RefreshingisFixedRate in class JMasterDisplayTimerpublic void refresh()
refresh in interface Refreshingrefresh in class JMasterDisplay
private void updateList(MyList column,
Map<String,List<Object>> done,
String telescope)
protected List<Object> getBottomItems()
getBottomItems in class JClientFrameprotected List<Object> getLeftItems()
getLeftItems in class JBorderFrameprotected List<Object> getRightItems()
getRightItems in class JBorderFrameprotected String getTableName()
getTableName in class JDatabaseDisplayprotected Map<String,Method> getRequestedFields()
getRequestedFields in class JDatabaseDisplayprotected boolean processLocally(HistoryAware.Pick pick)
JMasterDisplayJMasterDisplay.processExternally(stella.HistoryAware.Pick) will be called.
processLocally in class JMasterDisplayprotected boolean processExternally(HistoryAware.Pick pick)
processLocally(stella.HistoryAware.Pick) should return false, in
which turn we end up here. The implemnting class should retrieve the
external data, display it and eventually place a copy into the local
resources for later retrieval.
processExternally in class JDatabaseDisplay
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||