|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectucar.unidata.ui.TimeLengthField
public class TimeLengthField
Class TimeField is a widget that provides for showing a time length label borken down as days/hours/minutes and a dialog that allows the user to set the time length.
| Constructor Summary | |
|---|---|
TimeLengthField(String name)
ctor |
|
TimeLengthField(String name,
boolean isPositiveOnly)
ctor |
|
TimeLengthField(String name,
boolean isPositiveOnly,
boolean showYearsFld)
ctor |
|
TimeLengthField(String name,
double minutes)
ctor |
|
TimeLengthField(String name,
double minutes,
boolean isPositiveOnly,
boolean showYearsFld)
ctor |
|
| Method Summary | |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener. |
boolean |
applyFields(boolean allFields)
Apply the fields to the internal state |
JComponent |
getContents()
Get the gui contents |
JComponent |
getFieldsComponent(boolean allFields)
Get the gui component |
double |
getTime()
Current time interval as minutes |
void |
setTime(double minutes)
set the time as minutes |
boolean |
showDialog()
Show the dialog |
boolean |
showDialog(String topMsg)
Show the dialog |
void |
timeChanged()
Signal that the time changed |
String |
toString()
to string |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public TimeLengthField(String name)
name - The name we use
public TimeLengthField(String name,
boolean isPositiveOnly)
name - The name we useisPositiveOnly - Only show positive numbers
public TimeLengthField(String name,
double minutes)
name - The name we useminutes - minutes
public TimeLengthField(String name,
boolean isPositiveOnly,
boolean showYearsFld)
name - The nameisPositiveOnly - only have positive valuesshowYearsFld - Also show the years field
public TimeLengthField(String name,
double minutes,
boolean isPositiveOnly,
boolean showYearsFld)
name - The nameminutes - Number of initial minutesisPositiveOnly - only have positive valuesshowYearsFld - Also show the years field| Method Detail |
|---|
public boolean showDialog()
public JComponent getFieldsComponent(boolean allFields)
allFields - ignored
public boolean showDialog(String topMsg)
topMsg - If non-null show this in the dialog as a label
public boolean applyFields(boolean allFields)
allFields - ignored
public void addPropertyChangeListener(PropertyChangeListener listener)
listener - The PropertyChangeListener to add.public JComponent getContents()
public double getTime()
public void setTime(double minutes)
minutes - minutespublic void timeChanged()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||