wt.clients.workflow.definer
Class WfTimerTemplatePanel

java.lang.Object
  extended byjava.awt.Component
      extended byjava.awt.Container
          extended byjava.awt.Panel
              extended bywt.clients.workflow.definer.WfNodeTemplatePanel
                  extended bywt.clients.workflow.definer.WfTimerTemplatePanel
All Implemented Interfaces:
Accessible, ImageObserver, MenuContainer, Serializable

public final class WfTimerTemplatePanel
extends WfNodeTemplatePanel

The UI for specifying properties for a WfTimerTemplate robot.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class wt.clients.workflow.definer.WfNodeTemplatePanel
WfNodeTemplatePanel.InitializeThread
 
Nested classes inherited from class java.awt.Panel
Panel.AccessibleAWTPanel
 
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
(package private)  TextField delayDaysField
           
(package private)  Label delayDaysLabel
           
(package private)  TextField delayHoursField
           
(package private)  Label delayHoursLabel
           
(package private)  Label delayLabel
           
(package private)  TextField delayMinutesField
           
(package private)  Label delayMinutesLabel
           
(package private)  TextField processDelayDaysField
           
(package private)  Label processDelayDaysLabel
           
(package private)  TextField processDelayHoursField
           
(package private)  Label processDelayHoursLabel
           
(package private)  Label processDelayLabel
           
(package private)  TextField processDelayMinutesField
           
(package private)  Label processDelayMinutesLabel
           
(package private)  Panel timingPanel
           
private static String versionID
           
 
Fields inherited from class wt.clients.workflow.definer.WfNodeTemplatePanel
propertiesTabPanel, wfNodeTemplateEditor, wfTemplateObjectEvents
 
Fields inherited from class java.awt.Panel
 
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
(package private) WfTimerTemplatePanel(WfNodeTemplateEditor wf_node_template_editor)
          The constructor for the UI for specifying properties for a WfTimerTemplate robot.
 
Method Summary
 void addNotify()
          Overrides the default addNotify to work around IE bugs.
 String getHelpTag()
           
private  int getValue(TextField field)
           
 void initialize()
          Initialize and localize the fields in the timer panel.
private  void populateFields(long milliseconds, TextField daysField, TextField hoursField, TextField minutesField)
          Takes a long value in milliseconds and populates TextFields representing days, hours, and minutes.
protected  void save()
          Save the user entered values in the fields to the WfTimerTemplate.
 
Methods inherited from class wt.clients.workflow.definer.WfNodeTemplatePanel
addTabs, cancel, getEditor, getPropertiesTabPanel, getUserEvents, reinitialize, setCurrentTab
 
Methods inherited from class java.awt.Panel
getAccessibleContext
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getInsets, getLayout, getListeners, getMaximumSize, getMinimumSize, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, paramString, preferredSize, print, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, removeNotify, setFocusCycleRoot, setFocusTraversalKeys, setFocusTraversalPolicy, setFont, setLayout, transferFocusBackward, transferFocusDownCycle, update, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isOpaque, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

versionID

private static final String versionID
See Also:
Constant Field Values

timingPanel

Panel timingPanel

delayLabel

Label delayLabel

delayDaysField

TextField delayDaysField

delayDaysLabel

Label delayDaysLabel

delayHoursField

TextField delayHoursField

delayHoursLabel

Label delayHoursLabel

delayMinutesField

TextField delayMinutesField

delayMinutesLabel

Label delayMinutesLabel

processDelayLabel

Label processDelayLabel

processDelayDaysField

TextField processDelayDaysField

processDelayDaysLabel

Label processDelayDaysLabel

processDelayHoursField

TextField processDelayHoursField

processDelayHoursLabel

Label processDelayHoursLabel

processDelayMinutesField

TextField processDelayMinutesField

processDelayMinutesLabel

Label processDelayMinutesLabel
Constructor Detail

WfTimerTemplatePanel

WfTimerTemplatePanel(WfNodeTemplateEditor wf_node_template_editor)
The constructor for the UI for specifying properties for a WfTimerTemplate robot.

Method Detail

initialize

public void initialize()
                throws WTException
Initialize and localize the fields in the timer panel.

Overrides:
initialize in class WfNodeTemplatePanel
Throws:
WTException - It initialization cannot happen.

addNotify

public void addNotify()
Overrides the default addNotify to work around IE bugs. The setCaretPosition(0) call on TextFields forces IE to fix painting problem.

Overrides:
addNotify in class WfNodeTemplatePanel

populateFields

private void populateFields(long milliseconds,
                            TextField daysField,
                            TextField hoursField,
                            TextField minutesField)
Takes a long value in milliseconds and populates TextFields representing days, hours, and minutes.

Parameters:
milliseconds - The time in milliseconds.
daysField - The TextField representing the number of days.
hoursField - A TextField representing the number of hours.
minutesField - A TextField representing the number of minutes.
Since:
3.1

save

protected void save()
             throws WTException
Save the user entered values in the fields to the WfTimerTemplate. Must call super to get the template in the batch container.

Overrides:
save in class WfNodeTemplatePanel
Throws:
WTException - If the save cannot be performed.

getValue

private int getValue(TextField field)
              throws WTException
Parameters:
field - The TextField which contains a time value integer.
Returns:
an int value for the string entered in the supplied TextField.
Throws:
WTException - thrown if the value in the TextField cannot be parsed.
Since:
3.1

getHelpTag

public String getHelpTag()
Overrides:
getHelpTag in class WfNodeTemplatePanel