org.rosuda.deducer.widgets
Interface DeducerWidget

All Known Implementing Classes:
ButtonGroupWidget, CheckBoxesWidget, ComboBoxWidget, ListWidget, ObjectChooserWidget, SingleVariableWidget, SliderWidget, TextAreaWidget, TextFieldWidget, VariableListWidget, VariableSelectorWidget, VectorBuilderWidget

public interface DeducerWidget


Method Summary
 java.lang.Object getModel()
          Get the current state of the widget
 java.lang.String getRModel()
          Gets R representation of state
 java.lang.String getTitle()
          title
 void reset()
          Sets the state of the widget to its default value
 void resetToLast()
          Sets state of widget to the last time the dialog was completed
 void setDefaultModel(java.lang.Object model)
          Sets the default state of the model
 void setLastModel(java.lang.Object model)
          Updates the last completed state
 void setModel(java.lang.Object model)
          Sets the current state of the widget
 void setTitle(java.lang.String t)
          Sets the title of the widget with no display
 void setTitle(java.lang.String t, boolean show)
          Sets the title of the widget
 

Method Detail

setModel

void setModel(java.lang.Object model)
Sets the current state of the widget

Parameters:
model - The new state. Each widget accepts a different type of Object.

getModel

java.lang.Object getModel()
Get the current state of the widget

Returns:
The current state of the widget. Each widget returns a different type of Object.

setLastModel

void setLastModel(java.lang.Object model)
Updates the last completed state

Parameters:
model - The state of the widget the last time the dialog was run. Each widget returns a different type of Object.

setDefaultModel

void setDefaultModel(java.lang.Object model)
Sets the default state of the model

Parameters:
model - The default state of the widget. Each widget returns a different type of Object.

resetToLast

void resetToLast()
Sets state of widget to the last time the dialog was completed


reset

void reset()
Sets the state of the widget to its default value


getRModel

java.lang.String getRModel()
Gets R representation of state

Returns:
A String representing the current state of the widget which is interpretable by R.

setTitle

void setTitle(java.lang.String t,
              boolean show)
Sets the title of the widget

Parameters:
t - Title
show - Should it be displayed as a titled border.

setTitle

void setTitle(java.lang.String t)
Sets the title of the widget with no display

Parameters:
t - title

getTitle

java.lang.String getTitle()
title

Returns:
title