uic.output.swing
Class KDoubleNumInput

java.lang.Object
  extended by uic.output.AbstractWidget
      extended by uic.output.swing.AbstractWidget
          extended by uic.output.swing.KDoubleNumInput

public class KDoubleNumInput
extends AbstractWidget


Nested Class Summary
 
Nested classes/interfaces inherited from class uic.output.AbstractWidget
AbstractWidget.ActionInformation
 
Field Summary
 
Fields inherited from class uic.output.swing.AbstractWidget
DEFAULTS, PROP_TOOLTIP
 
Fields inherited from class uic.output.AbstractWidget
builder, BUTTON, debug, debugGrid, horizontalAlign, PROP_BACKGROUNDCOLOR, PROP_BUTTONMNEMONIC, PROP_BUTTONTEXT, PROP_FOREGROUNDCOLOR, PROP_MAXIMUMSIZE, PROP_MINIMUMSIZE, properties, sourceVersion, translator, verticalAlign, widgetElement
 
Constructor Summary
KDoubleNumInput(UICBuilder builder, Element e)
           
 
Method Summary
 String constructWidget()
          Create the construction of the widget.
protected  String getFormatString(double d)
          returns the format string that seems most appropriate for the default value of the widget.
 AbstractWidget.ActionInformation getSignalActionInformation(String signal)
           
 String getSlotActionInformation(String slot)
           
protected  double getStepFrom(double d)
          returns the step that seems most appropriate for the default value of the widget.
 
Methods inherited from class uic.output.swing.AbstractWidget
writeDefaultProperties
 
Methods inherited from class uic.output.AbstractWidget
createActions, getDoubleProperty, getHorizontalAlign, getIntProperty, getName, getSourceVersion, getVerticalAlign, getWidgetRepresenter, isHTMLtext, setBuildSettings, setDebug, setDebugGrid, setSourceVersion, setTranslator, setWidgetRepresenter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KDoubleNumInput

public KDoubleNumInput(UICBuilder builder,
                       Element e)
Method Detail

constructWidget

public String constructWidget()
Description copied from class: AbstractWidget
Create the construction of the widget. The base construction is done here, this is the first method invoced.

Specified by:
constructWidget in class AbstractWidget
Returns:
name The name of the constructed class that should be added to a container.

getSignalActionInformation

public AbstractWidget.ActionInformation getSignalActionInformation(String signal)
Overrides:
getSignalActionInformation in class AbstractWidget

getSlotActionInformation

public String getSlotActionInformation(String slot)
Overrides:
getSlotActionInformation in class AbstractWidget

getStepFrom

protected double getStepFrom(double d)
returns the step that seems most appropriate for the default value of the widget. (e.g. a default value of 0.12 leads to a step of 0.01).


getFormatString

protected String getFormatString(double d)
returns the format string that seems most appropriate for the default value of the widget. (e.g. a default value of 0.12 leads to a format string of 0.00)



Copyright © 2002-2004 Thomas Zander Available under the Free Apache licence