|
|||||||||||
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
wt.clients.scheduler.GenericSchedTimeFrame
Nested Class Summary | |
private class |
GenericSchedTimeFrame.RememberMe
Remember the state of all the widgets at startup. |
private class |
GenericSchedTimeFrame.SpinnerStates
|
(package private) class |
GenericSchedTimeFrame.SymAction
|
(package private) class |
GenericSchedTimeFrame.SymItem
|
(package private) class |
GenericSchedTimeFrame.SymKey
|
(package private) class |
GenericSchedTimeFrame.SymWindow
|
Nested classes inherited from class java.awt.Frame |
Frame.AccessibleAWTFrame |
Nested classes inherited from class java.awt.Window |
Window.AccessibleAWTWindow |
Nested classes inherited from class java.awt.Container |
Container.AccessibleAWTContainer |
Nested classes inherited from class java.awt.Component |
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
private String |
_argClass
|
private int |
_argCount
|
private Class[] |
_args
|
private boolean |
_bCreate
|
private boolean |
_bFirstRunDone
|
private boolean |
_bFromApp
|
private boolean |
_bImmediate
|
private boolean |
_bPeriodic
|
private boolean |
_bUpdate
|
private boolean |
_bView
|
private ThreadGroup |
_contextGroup
|
(package private) ResourceBundle |
_custRB
|
private boolean |
_dateUpdateFlag
|
(package private) HelpContext |
_helpContext
|
(package private) HelpSystem |
_helpSystem
|
private boolean |
_localObj
|
private Vector |
_objList
|
private Hashtable |
_objTable
|
private String |
_oldDates
|
private Timestamp |
_oldNextTime
|
private long |
_origFreq
|
(package private) ResourceBundle |
_rb
|
private GenericSchedTimeFrame.RememberMe |
_recorder
|
private SchedInfo |
_schedInfo
|
private GenericSchedTimeFrame.SpinnerStates |
_spinRecord
|
(package private) Button |
cancelButt
|
(package private) Button |
clearButt
|
static int |
CREATE_MODE
|
(package private) Label |
dateLab
|
(package private) Label |
dayLab
|
(package private) LongSpinner |
daySpin
|
(package private) Label |
everyLab
|
(package private) boolean |
fComponentsAdjusted
|
private String |
format
|
(package private) symantec.itools.awt.BorderPanel |
freqPanel
|
(package private) CheckboxGroup |
Group1
|
(package private) CheckboxGroup |
Group2
|
(package private) Button |
helpButt
|
(package private) Label |
hourLab
|
(package private) LongSpinner |
hourSpin
|
(package private) Checkbox |
immedButt
|
private boolean |
isPDMLinkInstalled
booleans to store the status of installed components |
private boolean |
isProjectLinkInstalled
|
(package private) Label |
minLab
|
(package private) LongSpinner |
minSpin
|
(package private) Choice |
objectChoice
|
private TextField |
objectField
|
(package private) Label |
objNameLab
|
(package private) Button |
okButt
|
(package private) Checkbox |
onceButt
|
(package private) Checkbox |
onTimeButt
|
(package private) Panel |
panel1
|
(package private) Panel |
panel2
|
(package private) Checkbox |
periodButt
|
private static String |
RESOURCE
|
(package private) Label |
startLab
|
(package private) TextField |
startTimeField
|
(package private) symantec.itools.awt.StatusBar |
statusBar1
|
(package private) symantec.itools.awt.BorderPanel |
timeBorderPanel
|
static int |
UPDATE_MODE
|
static int |
VIEW_MODE
|
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.Window |
|
Fields inherited from class java.awt.Container |
|
Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
|
GenericSchedTimeFrame()
|
|
GenericSchedTimeFrame(int mode,
SchedInfo info,
String timeFormat)
|
|
GenericSchedTimeFrame(int mode,
SchedInfo info,
WTObject theObj)
|
private |
GenericSchedTimeFrame(String title)
|
Method Summary | |
void |
addNotify()
|
(package private) void |
applyButt_ActionPerformed(ActionEvent event)
Creates a new schedule item in case it was not an update. |
private boolean |
argIsWTObject()
|
(package private) void |
cancelButt_ActionPerformed(ActionEvent event)
|
private boolean |
checkForArgs()
|
(package private) void |
clearButt_ActionPerformed(ActionEvent event)
|
private long |
computePeriodicity()
|
private Timestamp |
computeStartDate()
|
private void |
computeUpdateWidgets()
|
private void |
computeViewWidgets()
|
private void |
createScheduleItem()
Create the new schedule item. |
(package private) void |
daySpin_actionPerformed(ActionEvent event)
|
private void |
enableWidgets()
|
private void |
fillObjectChoice()
|
(package private) void |
GenericSchedTimeFrame_WindowClosing(WindowEvent event)
|
private WTContext |
getContext()
Returns the appropriate WTContext which corresponds
to this frame. |
HelpContext |
getHelpContext()
Gets the HelpContext instance associated with this screen., This method is public by Windchill convention |
HelpSystem |
getHelpSystem()
Gets the HelpSystem instance associated with this screen. |
(package private) void |
helpButt_ActionPerformed(ActionEvent event)
|
(package private) void |
helpButt_MouseReleased(MouseEvent event)
|
private boolean |
IHaveRun(Timestamp startDate)
|
(package private) void |
immedButt_ItemStateChanged(ItemEvent event)
|
private void |
initHelpSystem()
Initializes the help system. |
private void |
initializeHelp()
This function should be the last thing called in the ctor. |
private boolean |
isArgWTObject()
|
private void |
localize()
|
private void |
localizeCustomerData()
|
static void |
main(String[] args)
|
private PropertyChangeListener |
newHelpListener()
newHelpListener This function adds a listener to respond to the component mouse over events. |
(package private) void |
okButt_ActionPerformed(ActionEvent event)
Create a new ScheduleItem based on the information from the screen and the mode we are in. |
(package private) void |
onceButt_ItemStateChanged(ItemEvent event)
|
(package private) void |
onTimeButt_ItemStateChanged(ItemEvent event)
|
(package private) void |
periodButt_ItemStateChanged(ItemEvent event)
|
private void |
setArgField()
|
private void |
setContext(boolean contextOn)
|
private void |
setDateFields(Timestamp date)
|
private void |
setDateInfo(ScheduleItem theItem)
|
private void |
setDefaultStartDate()
|
private void |
setEnabledFlag()
A schedule Item is enabled when the runcount is equal to its toberun flag. |
private void |
setPeriodicityWidgets(long period)
|
private void |
setupCreateMode()
|
private void |
setupUpdateMode()
|
private void |
setupViewMode()
|
void |
setVisible(boolean b)
Shows or hides the component depending on the boolean flag b. |
private void |
stopHelp()
stopHelp should be called every time the window gets closed. |
private void |
toggleAllSpinners(boolean mode)
|
private void |
updateDateWidgets()
|
private void |
updateScheduleItem()
Update a schedule item. |
private void |
verifySpinners()
|
Methods inherited from class java.awt.Frame |
finalize, getAccessibleContext, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, paramString, remove, removeNotify, setCursor, setExtendedState, setIconImage, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.awt.MenuContainer |
getFont, postEvent |
Field Detail |
public static final int VIEW_MODE
public static final int UPDATE_MODE
public static final int CREATE_MODE
private boolean _bCreate
private boolean _bView
private boolean _bUpdate
private boolean _bImmediate
private boolean _bPeriodic
private boolean _bFirstRunDone
private boolean _dateUpdateFlag
private boolean _bFromApp
private ThreadGroup _contextGroup
private SchedInfo _schedInfo
private TextField objectField
private String _argClass
private int _argCount
private Class[] _args
ResourceBundle _custRB
ResourceBundle _rb
private String format
private static final String RESOURCE
private Hashtable _objTable
private Vector _objList
private String _oldDates
private Timestamp _oldNextTime
HelpSystem _helpSystem
HelpContext _helpContext
private GenericSchedTimeFrame.RememberMe _recorder
private long _origFreq
private GenericSchedTimeFrame.SpinnerStates _spinRecord
private boolean _localObj
private boolean isPDMLinkInstalled
private boolean isProjectLinkInstalled
boolean fComponentsAdjusted
Label objNameLab
Choice objectChoice
symantec.itools.awt.StatusBar statusBar1
Panel panel1
Button okButt
Button clearButt
Button cancelButt
Button helpButt
Panel panel2
symantec.itools.awt.BorderPanel timeBorderPanel
Checkbox immedButt
CheckboxGroup Group2
Checkbox onTimeButt
Label startLab
TextField startTimeField
Label dateLab
symantec.itools.awt.BorderPanel freqPanel
Checkbox onceButt
CheckboxGroup Group1
Checkbox periodButt
Label everyLab
Label dayLab
Label hourLab
Label minLab
LongSpinner daySpin
LongSpinner hourSpin
LongSpinner minSpin
Constructor Detail |
public GenericSchedTimeFrame()
private GenericSchedTimeFrame(String title)
public GenericSchedTimeFrame(int mode, SchedInfo info, WTObject theObj)
public GenericSchedTimeFrame(int mode, SchedInfo info, String timeFormat)
Method Detail |
private boolean IHaveRun(Timestamp startDate)
private void setEnabledFlag()
private void localize()
private void localizeCustomerData()
private void setPeriodicityWidgets(long period) throws PropertyVetoException
PropertyVetoException
private void setupViewMode()
private void computeViewWidgets()
private void setDateInfo(ScheduleItem theItem)
private void updateDateWidgets()
private void setDateFields(Timestamp date)
private boolean checkForArgs()
private void setupUpdateMode()
private void computeUpdateWidgets()
private void setArgField()
private void setupCreateMode()
private void setDefaultStartDate()
private void fillObjectChoice()
private boolean isArgWTObject()
private void enableWidgets()
private void verifySpinners()
public void setVisible(boolean b)
b
- if true, show the component; otherwise, hide the component.Component.isVisible()
public static void main(String[] args)
public void addNotify()
void GenericSchedTimeFrame_WindowClosing(WindowEvent event)
void cancelButt_ActionPerformed(ActionEvent event)
private WTContext getContext()
WTContext
which corresponds
to this frame. This method first tries to retrieve the WTContext
by using the ThreadGroup
saved when this frame was
constructed. If the ThreadGroup is null, this method uses the default
getContext()
method to retrieve a WTContext.
WTContext
object associated with this
frameWTContext
private void setContext(boolean contextOn)
private void initializeHelp()
public HelpContext getHelpContext()
public HelpSystem getHelpSystem()
private void initHelpSystem()
private PropertyChangeListener newHelpListener()
private void stopHelp()
void helpButt_MouseReleased(MouseEvent event)
private void toggleAllSpinners(boolean mode)
void onceButt_ItemStateChanged(ItemEvent event)
void clearButt_ActionPerformed(ActionEvent event)
void applyButt_ActionPerformed(ActionEvent event)
void okButt_ActionPerformed(ActionEvent event)
private void updateScheduleItem() throws WTException, ParseException
WTException
ParseException
private void createScheduleItem() throws WTException, WTPropertyVetoException, IllegalAccessException, InstantiationException, ParseException
WTException,
- WTPropertyVetoException
WTException
WTPropertyVetoException
IllegalAccessException
InstantiationException
ParseException
private long computePeriodicity()
private Timestamp computeStartDate() throws ParseException, WTException
ParseException
WTException
private boolean argIsWTObject()
void periodButt_ItemStateChanged(ItemEvent event)
void onTimeButt_ItemStateChanged(ItemEvent event)
void immedButt_ItemStateChanged(ItemEvent event)
void helpButt_ActionPerformed(ActionEvent event)
void daySpin_actionPerformed(ActionEvent event)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |