public interface DmcPresentationIF
| Modifier and Type | Method and Description |
|---|---|
DmcAdapterIF |
getAdapter() |
DmcObject |
getDMO() |
int |
getID() |
String |
getLabel() |
boolean |
isReady() |
boolean |
isValid()
This allows a DmcPresentationTrackerIF implementor to trigger validation on
all of its bindings and have them indicate if they're ready or not ready.
|
void |
resetToExisting()
When this method is called, the presentation should have its adapter resetToExisting()
and display the original value.
|
void |
setAdapter(DmcAdapterIF adapter)
Sets the adapter associated with the attribute being displayed.
|
void |
setDMO(DmcObject dmo)
In cases where validation depends on relationships between attributes in an object,
it's useful to have access to the object.
|
void |
setEmpty()
This methods allows you to set the presentation to be empty.
|
void |
setEnabled(boolean flag)
This method is used to set the state of the value presentation to enable or disable editting.
|
void |
setLabel(String label)
Sets the label to be associated with this presentation.
|
void |
setMandatory(boolean mandatory)
Sets an indication of whether or not the attribute being presented is mandatory
or not.
|
void |
setReadOnly(boolean readonly)
Sets whether or not the presentation is edittable.
|
void |
setToolTip(String tooltip)
Sets the tool tip to be associated with this presentation.
|
void |
setTracker(DmcPresentationTrackerIF t,
int id)
Sets the tracker that keeps tabs on whether or not all presentation components
are in a ready state.
|
void |
setValueIndex(int index)
For multi-valued attributes that have a specified index (indexed attributes), the attribute
should be thought of as containing a predetermined number of slots that can either empty
(null) or have a value of the associated type.
|
boolean |
valueChanged()
This aspect is more tricky than it might first appear.
|
void setLabel(String label)
label - String getLabel()
void setToolTip(String tooltip)
tooltip - void setMandatory(boolean mandatory)
mandatory - true if it's mandatory and false otherwise.void setReadOnly(boolean readonly)
readonly - true if we're read only and false otherwise.void setAdapter(DmcAdapterIF adapter)
adapter - the adapter.DmcAdapterIF getAdapter()
boolean isReady()
boolean isValid()
void setTracker(DmcPresentationTrackerIF t, int id)
t - The tracker component.id - A uniquely assigned identifier that you must return via the getID() method.int getID()
void resetToExisting()
void setEmpty()
boolean valueChanged()
void setEnabled(boolean flag)
flag - true to enable editing and false otherwisevoid setValueIndex(int index)
index - void setDMO(DmcObject dmo)
dmo - The associated DMO.DmcObject getDMO()
Copyright © 2023. All rights reserved.