org.gscg.common.gui.components
Class SpinnerUtilities

java.lang.Object
  extended byorg.gscg.common.gui.components.SpinnerUtilities

public final class SpinnerUtilities
extends java.lang.Object


Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.

Since:
1.0.0
Version:
1.0 Jun 22, 2004
, $Revision: 1.1 $ $Date: 2005/06/16 12:33:53 $
Author:
Stijn-Pieter van Houten

Method Summary
static JInteractiveSpinner addLabeledInteractiveSpinner(java.awt.Container container, java.lang.String labelCaption, javax.swing.SpinnerModel model)
          Method addLabeledSpinner.
static javax.swing.JSpinner addLabeledSpinner(java.awt.Container container, java.lang.String labelCaption, javax.swing.SpinnerModel model)
          Method addLabeledSpinner.
static java.lang.String[] getMonthStrings()
          Method getMonthStrings.
static JFormattedTextField getTextField(JInteractiveSpinner spinner)
          Return the formatted text field used by the editor, or null if the editor doesn't descend from JSpinner.DefaultEditor or DefaultEditor..
static javax.swing.JFormattedTextField getTextField(javax.swing.JSpinner spinner)
          Return the formatted text field used by the editor, or null if the editor doesn't descend from JSpinner.DefaultEditor or DefaultEditor..
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

addLabeledSpinner

public static javax.swing.JSpinner addLabeledSpinner(java.awt.Container container,
                                                     java.lang.String labelCaption,
                                                     javax.swing.SpinnerModel model)
Method addLabeledSpinner.

Parameters:
container - the container to add the spinner to
labelCaption - the caption of the label of the spinner
model - the model for the spinner
Returns:
returns a spinner

addLabeledInteractiveSpinner

public static JInteractiveSpinner addLabeledInteractiveSpinner(java.awt.Container container,
                                                               java.lang.String labelCaption,
                                                               javax.swing.SpinnerModel model)
Method addLabeledSpinner.

Parameters:
container - the container to add the spinner to
labelCaption - the caption of the label of the spinner
model - the model for the spinner
Returns:
returns a spinner

getMonthStrings

public static java.lang.String[] getMonthStrings()
Method getMonthStrings.

Returns:
returns a string[] with the numbers of each month

getTextField

public static javax.swing.JFormattedTextField getTextField(javax.swing.JSpinner spinner)
Return the formatted text field used by the editor, or null if the editor doesn't descend from JSpinner.DefaultEditor or DefaultEditor..

Parameters:
spinner - the spinner
Returns:
returns a formatted textfield for the spinner

getTextField

public static JFormattedTextField getTextField(JInteractiveSpinner spinner)
Return the formatted text field used by the editor, or null if the editor doesn't descend from JSpinner.DefaultEditor or DefaultEditor..

Parameters:
spinner - the spinner
Returns:
returns a formatted textfield for the spinner


Copyright © 2002-2005 Delft University of Technology, the Netherlands. All Rights Reserved.