com.izforge.izpack.panels.userinput.field
Class AbstractFieldView

java.lang.Object
  extended by com.izforge.izpack.panels.userinput.field.AbstractFieldView
All Implemented Interfaces:
FieldView
Direct Known Subclasses:
ConsoleField, GUIField

public abstract class AbstractFieldView
extends Object
implements FieldView

Abstract implementation of FieldView.

Author:
Tim Anderson

Constructor Summary
AbstractFieldView(Field field)
          Constructs an AbstractFieldView.
 
Method Summary
 Field getField()
          Returns the field.
 String getSummaryKey()
          Returns the summary key associated with the field.
 String getVariable()
          Returns the variable associated with the field.
 boolean isDisplayed()
          Determines if the view is being displayed.
 boolean isReadonly()
          Determines if the view is read-only.
 void setDisplayed(boolean displayed)
          Determines if the view is being displayed.
 void setReadonly(boolean readonly)
          Set the view read-only or not.
 void setVariable(String newVariableName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractFieldView

public AbstractFieldView(Field field)
Constructs an AbstractFieldView.

Parameters:
field - the field
Method Detail

getField

public Field getField()
Returns the field.

Specified by:
getField in interface FieldView
Returns:
the field

getVariable

public String getVariable()
Returns the variable associated with the field.

Returns:
the variable, or null if the field doesn't update a variable

setVariable

public void setVariable(String newVariableName)

getSummaryKey

public String getSummaryKey()
Returns the summary key associated with the field.

Returns:
the summary key, or null if the field doesn't update a summary

isDisplayed

public boolean isDisplayed()
Description copied from interface: FieldView
Determines if the view is being displayed.

Specified by:
isDisplayed in interface FieldView
Returns:
true if the view is being displayed

setDisplayed

public void setDisplayed(boolean displayed)
Description copied from interface: FieldView
Determines if the view is being displayed.

Specified by:
setDisplayed in interface FieldView
Parameters:
displayed - true if the view is being displayed

isReadonly

public boolean isReadonly()
Description copied from interface: FieldView
Determines if the view is read-only.

Specified by:
isReadonly in interface FieldView
Returns:
true if the view is read-only

setReadonly

public void setReadonly(boolean readonly)
Description copied from interface: FieldView
Set the view read-only or not.

Specified by:
setReadonly in interface FieldView


Copyright © 2018. All rights reserved.