net.yura.mobile.gui.components
Class Spinner

java.lang.Object
  extended by net.yura.mobile.gui.components.Component
      extended by net.yura.mobile.gui.components.Label
          extended by net.yura.mobile.gui.components.Spinner

public class Spinner
extends Label

Author:
Yura Mamyrin
See Also:
JSpinner

Field Summary
 
Fields inherited from class net.yura.mobile.gui.components.Label
alignment, extension, font, gap, icon, padding, string, textPosition
 
Fields inherited from class net.yura.mobile.gui.components.Component
background, empty, FOCUS_GAINED, FOCUS_LOST, focusable, foreground, height, parent, posX, posY, preferredHeight, preferredWidth, state, theme, width
 
Constructor Summary
Spinner()
           
Spinner(Vector vec, boolean cont)
           
 
Method Summary
 void addChangeListener(ChangeListener l)
           
 String getDefaultName()
           
 Object getNextValue()
           
 Object getPreviousValue()
           
 Object getValue()
           
 void paintComponent(Graphics2D g)
           
 boolean processKeyEvent(KeyEvent keypad)
           
 void processMouseEvent(int type, int x, int y, KeyEvent keys)
           
 void removeChangeListener(ChangeListener l)
           
 void setList(Vector data)
           
 void setMaximum(int maximum)
           
 void setMinimum(int minimum)
           
 void setText(String a)
          This throws an IllegalArgumentException and you should use the setIndex method instead
 void setValue(Object value)
           
 void updateUI()
           
 void workoutMinimumSize()
          This sets the width and height of this component to the MINIMUM that is needed for this component
 
Methods inherited from class net.yura.mobile.gui.components.Label
getCombinedHeight, getCombinedHeight, getCombinedWidth, getCombinedWidth, getFont, getHorizontalAlignment, getHorizontalTextPosition, getIcon, getMargin, getMaxWidth, getText, getVerticalAlignment, getVerticalTextPosition, paintIcon, setFont, setHorizontalAlignment, setHorizontalTextPosition, setIcon, setIconTextGap, setMargin, setVerticalAlignment, setVerticalTextPosition, toString
 
Methods inherited from class net.yura.mobile.gui.components.Component
add, add, add, addFocusListener, addImpl, animate, clip, consumesMotionEvents, focusGained, focusLost, getBackground, getBorder, getCurrentState, getDesktopPane, getFocusListeners, getForeground, getHeight, getHeightWithBorder, getInsets, getName, getParent, getPreferredHeight, getPreferredWidth, getState, getToolTipLocationX, getToolTipLocationY, getToolTipText, getWidth, getWidthWithBorder, getWindow, getX, getXOnScreen, getXWithBorder, getY, getYOnScreen, getYWithBorder, insert, insert, isComponentVisible, isFocusable, isFocusOwner, isOpaque, isRectVisible, isShowing, isVisible, makeVisible, paint, paintBorder, processMultitouchEvent, removeFocusListener, removeParent, repaint, requestFocusInWindow, revalidate, scrollRectToVisible, scrollUpDown, setBackground, setBorder, setBounds, setBoundsWithBorder, setFocusable, setForeground, setLocation, setName, setPreferredSize, setSize, setState, setToolTipText, setupState, setVisible, transferFocus, validate, wait, workoutSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Spinner

public Spinner()
See Also:
JSpinner.JSpinner

Spinner

public Spinner(Vector vec,
               boolean cont)
See Also:
SpinnerListModel.SpinnerListModel
Method Detail

addChangeListener

public void addChangeListener(ChangeListener l)
See Also:
JSpinner.addChangeListener

getDefaultName

public String getDefaultName()
Overrides:
getDefaultName in class Label

getNextValue

public Object getNextValue()
See Also:
JSpinner.getNextValue, SpinnerModel.getNextValue

getPreviousValue

public Object getPreviousValue()
See Also:
JSpinner.getPreviousValue, SpinnerModel.getPreviousValue

getValue

public Object getValue()
Overrides:
getValue in class Component
Returns:
the current value
See Also:
JSpinner.getValue, SpinnerModel.getValue

paintComponent

public void paintComponent(Graphics2D g)
Overrides:
paintComponent in class Label
See Also:
JComponent.paintComponent

processKeyEvent

public boolean processKeyEvent(KeyEvent keypad)
Overrides:
processKeyEvent in class Component
See Also:
JComponent.processKeyEvent

processMouseEvent

public void processMouseEvent(int type,
                              int x,
                              int y,
                              KeyEvent keys)
Overrides:
processMouseEvent in class Component
See Also:
Component.processMouseEvent

removeChangeListener

public void removeChangeListener(ChangeListener l)
See Also:
JSpinner.removeChangeListener

setList

public void setList(Vector data)
See Also:
SpinnerListModel.setList

setMaximum

public void setMaximum(int maximum)
See Also:
SpinnerNumberModel.setMaximum

setMinimum

public void setMinimum(int minimum)
See Also:
SpinnerNumberModel.setMinimum

setText

public void setText(String a)
This throws an IllegalArgumentException and you should use the setIndex method instead

Overrides:
setText in class Label
Parameters:
a - The text of the label
See Also:
JLabel.setText

setValue

public void setValue(Object value)
Overrides:
setValue in class Label
Parameters:
value -
See Also:
JSpinner.setValue, SpinnerModel.setValue

updateUI

public void updateUI()
Overrides:
updateUI in class Label
See Also:
JComponent.updateUI

workoutMinimumSize

public void workoutMinimumSize()
Description copied from class: Component
This sets the width and height of this component to the MINIMUM that is needed for this component

Overrides:
workoutMinimumSize in class Label
See Also:
JComponent.getMinimumSize