|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.beans.PropertyEditorSupport
adams.gui.goe.AbstractPropertyEditorSupport
adams.gui.goe.CronScheduleEditor
public class CronScheduleEditor
A PropertyEditor for CronSchedule objects.
CronSchedule| Field Summary | |
|---|---|
protected ParameterPanel |
m_PanelParts
for the parts of the expression. |
protected JTextField |
m_TextDayOfMonth
the text field for the day-of-month. |
protected JTextField |
m_TextDayOfWeek
the text field for the day-of-week. |
protected JTextField |
m_TextHours
the text field for the hours. |
protected JTextField |
m_TextMinutes
the text field for the minutes. |
protected JTextField |
m_TextMonth
the text field for the month. |
protected JTextField |
m_TextSeconds
the text field for the seconds. |
protected JTextField |
m_TextYear
the text field for the year. |
static String |
URL_EXPRESSION
the URL for the CronExpression class. |
| Fields inherited from class adams.gui.goe.AbstractPropertyEditorSupport |
|---|
APPROVE_OPTION, CANCEL_OPTION, m_ChosenOption, m_CustomEditor, m_WindowAdapter |
| Constructor Summary | |
|---|---|
CronScheduleEditor()
|
|
| Method Summary | |
|---|---|
protected JComponent |
createCustomEditor()
Gets the custom editor component. |
Object |
fromCustomStringRepresentation(String str)
Returns an object created from the custom string representation. |
protected String |
getCurrentExpression()
Returns the current expression in the GUI. |
String |
getInlineValue()
Returns the current value. |
String |
getJavaInitializationString()
Returns a representation of the current property value as java source. |
protected void |
initForDisplay()
Initializes the display of the value. |
boolean |
isInlineEditingAvailable()
Checks whether inline editing is available. |
boolean |
isInlineValueValid(String value)
Checks whether the value id valid. |
void |
paintValue(Graphics gfx,
Rectangle box)
Paints a representation of the current Object. |
void |
setInlineValue(String value)
Sets the value to use. |
String |
toCustomStringRepresentation(Object obj)
Returns a custom string representation of the object. |
static String |
toString(AbstractOption option,
Object object)
Returns the Compound as string. |
static Object |
valueOf(AbstractOption option,
String str)
Returns a Compound generated from the string. |
| Methods inherited from class adams.gui.goe.AbstractPropertyEditorSupport |
|---|
addWindowAdapter, cleanUp, closeDialog, createPopup, createWindowAdapter, getChosenOption, getCustomEditor, initialize, isPaintable, resetChosenOption, setValue, supportsCustomEditor |
| Methods inherited from class java.beans.PropertyEditorSupport |
|---|
addPropertyChangeListener, firePropertyChange, getAsText, getSource, getTags, getValue, removePropertyChangeListener, setAsText, setSource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String URL_EXPRESSION
protected ParameterPanel m_PanelParts
protected JTextField m_TextSeconds
protected JTextField m_TextMinutes
protected JTextField m_TextHours
protected JTextField m_TextDayOfMonth
protected JTextField m_TextMonth
protected JTextField m_TextDayOfWeek
protected JTextField m_TextYear
| Constructor Detail |
|---|
public CronScheduleEditor()
| Method Detail |
|---|
public static String toString(AbstractOption option,
Object object)
option - the current optionobject - the Compound object to convert
public static Object valueOf(AbstractOption option,
String str)
option - the current optionstr - the string to convert to a Compound
public String toCustomStringRepresentation(Object obj)
toCustomStringRepresentation in interface CustomStringRepresentationHandlerobj - the object to turn into a string
public Object fromCustomStringRepresentation(String str)
fromCustomStringRepresentation in interface CustomStringRepresentationHandlerstr - the string to turn into an object
public String getJavaInitializationString()
getJavaInitializationString in interface PropertyEditorgetJavaInitializationString in class PropertyEditorSupport
public void paintValue(Graphics gfx,
Rectangle box)
paintValue in interface PropertyEditorpaintValue in class PropertyEditorSupportgfx - the graphics context to usebox - the area we are allowed to paint intoprotected String getCurrentExpression()
protected JComponent createCustomEditor()
createCustomEditor in class AbstractPropertyEditorSupportpublic boolean isInlineEditingAvailable()
isInlineEditingAvailable in interface InlineEditorSupportpublic void setInlineValue(String value)
setInlineValue in interface InlineEditorSupportvalue - the value to usepublic String getInlineValue()
getInlineValue in interface InlineEditorSupportpublic boolean isInlineValueValid(String value)
isInlineValueValid in interface InlineEditorSupportvalue - the value to check
protected void initForDisplay()
initForDisplay in class AbstractPropertyEditorSupport
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||