public class DetailBarPropertyEntry
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private boolean |
editable
if the value is true, the content of the entry is displayed in an input field.
|
private int |
position
represents the position in the detail bar.
|
private PropertyBarEntry |
propertyBarEntry
the value of the entry for the detail bar property.
|
private boolean |
readOnly
if the value is true, the content of the entry can not be changed.
|
Constructor and Description |
---|
DetailBarPropertyEntry(PropertyBarEntry value)
Constructor for the detail bar property entry.
|
DetailBarPropertyEntry(PropertyBarEntry value,
boolean editable)
Constructor for the detail bar property entry.
|
DetailBarPropertyEntry(PropertyBarEntry value,
boolean editable,
boolean readOnly,
int position)
Constructor for the detail bar property entry.
|
Modifier and Type | Method and Description |
---|---|
void |
accept(DetailBarVisitor visitor)
accept-method for nodevisitor (VisitorPattern).
|
int |
getPosition()
getter for getPosition.
|
PropertyBarEntry |
getPropertyBarEntry()
getter for getValue.
|
boolean |
isEditable()
getter for isEditable.
|
boolean |
isReadOnly()
getter for isReadOnly.
|
private final PropertyBarEntry propertyBarEntry
private boolean editable
private boolean readOnly
private int position
public DetailBarPropertyEntry(PropertyBarEntry value)
value
- the value of the entry for the detail bar property.public DetailBarPropertyEntry(PropertyBarEntry value, boolean editable)
value
- the value of the entry for the detail bar property.editable
- if the value is true, the content of the entry is displayed in an input field.public DetailBarPropertyEntry(PropertyBarEntry value, boolean editable, boolean readOnly, int position)
value
- the value of the entry for the detail bar property.editable
- if the value is true, the content of the entry is displayed in an input field.readOnly
- if the value is true, the content of the entry can not be changed.position
- represents the position in the detail bar. If the value is -1, the entry is
appended to the end of the bar.public final boolean isEditable()
public final boolean isReadOnly()
public final int getPosition()
public final PropertyBarEntry getPropertyBarEntry()
public final void accept(DetailBarVisitor visitor)
visitor
- the visitor.