| javax.swing.JPanel org.geotools.gui.swing.FormatChooser
FormatChooser | public class FormatChooser extends JPanel (Code) | | Select the pattern to use for
numbers, angles or dates.
This widget can be used with one of
Format objects working with pattern, like
DecimalFormat ,
SimpleDateFormat or
AngleFormat .
since: 2.0 version: $Id: FormatChooser.java 23632 2006-12-29 22:13:51Z desruisseaux $ author: Martin Desruisseaux |
Field Summary | |
protected Format | format The format to configure by this
FormatChooser . |
Constructor Summary | |
public | FormatChooser(Format format) Constructs a pattern chooser for the given format.
Parameters: format - The format to configure. |
format | protected Format format(Code) | | The format to configure by this
FormatChooser .
|
getFormat | public Format getFormat()(Code) | | Returns the current format.
|
getSampleValue | public Object getSampleValue()(Code) | | Returns the sample value to format as a "preview" text.
If no such object is defined, then this method returns
null .
|
main | public static void main(String[] args)(Code) | | Show this component. This method is used mostly in order
to check the look of this widget from the command line.
|
showDialog | public boolean showDialog(Component owner, String title)(Code) | | Shows a dialog box requesting input from the user. The dialog box will be
parented to
owner . If
owner is contained into a
javax.swing.JDesktopPane , the dialog box will appears as an internal
frame. This method can be invoked from any thread (may or may not be the
Swing thread).
Parameters: owner - The parent component for the dialog box,or null if there is no parent. Parameters: title - The dialog box title. true if user pressed the "Ok" button, or false otherwise (e.g. pressing "Cancel"or closing the dialog box from the title bar). |
update | final void update()(Code) | | Update the preview text according the current format pattern.
|
|
|