public abstract class AbstractPart extends Object implements IParameterDescriptor
| Modifier and Type | Field and Description |
|---|---|
protected IContainerPart |
container |
protected boolean |
enabledOnSelection |
protected boolean |
labelFlushed |
protected boolean |
labelNextToInput |
protected AbstractPart |
masterPart |
protected ParameterDescriptor |
paramDescriptor |
protected boolean |
vertical |
protected boolean |
withLabel |
| Constructor and Description |
|---|
AbstractPart(ParameterDescriptor paramDescriptor)
Creates a new BasePart object with a given parameter description.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkType()
Checks the types supported by this UI part.
|
IContainerPart |
getContainer()
Gets the container part of this part.
|
String |
getDisplayName()
Gets the localizable name of this parameter.
|
AbstractPart |
getMasterPart()
Gets the master part associated with this UI part.
|
String |
getName()
Gets the programming name of this parameter.
|
Object |
getParent()
Gets the object where this parameter is instantiated.
|
Method |
getReadMethod()
Gets the method to obtain the current value of this parameter.
|
String |
getShortDescription()
Gets the short localizable description of this parameter.
|
Type |
getType()
Gets the type of this parameter.
|
Method |
getWriteMethod()
Gets the method to set a new value for this this parameter.
|
boolean |
isEnabledOnSelection()
Indicates how this part is enabled in relation to its master part.
|
boolean |
isLabelFlushed()
Indicates if the label of this UI part should be flushed next to the part.
|
boolean |
isLabelNextToInput()
Indicates that the label for this part is to be displayed next to the input field.
|
boolean |
isVertical()
Indicates if this UI part should be arranged vertically.
|
boolean |
isWithLabel()
Indicates if this UI part should be displayed with a label.
|
void |
setContainer(IContainerPart container)
Sets the container part for this part.
|
void |
setDisplayName(String displayName)
Sets the localizable name of this parameter.
|
void |
setLabelFlushed(boolean labelFlushed)
Sets the flag indicating if the label of this UI part should be flushed next to the part.
|
void |
setLabelNextToInput(boolean labelNextToInput)
Sets the indicator that tells if the label for this part is to be displayed next to the input field.
|
void |
setMasterPart(AbstractPart masterPart,
boolean enabledOnSelection)
Binds this part to a master part.
|
void |
setShortDescription(String shortDescription)
Gets the short localizable description of this parameter.
|
void |
setVertical(boolean vertical)
Sets the flag indicating if this UI part should be arranged vertically.
|
void |
setWithLabel(boolean withLabel)
Sets the flag indicating if this UI part should be displayed with a label.
|
protected ParameterDescriptor paramDescriptor
protected IContainerPart container
protected boolean vertical
protected boolean labelFlushed
protected boolean withLabel
protected boolean labelNextToInput
protected AbstractPart masterPart
protected boolean enabledOnSelection
public AbstractPart(ParameterDescriptor paramDescriptor)
paramDescriptor - the parameter description for this UI part.public String getDisplayName()
IParameterDescriptorgetDisplayName in interface IParameterDescriptorpublic String getName()
IParameterDescriptorgetMyText and setMyText must be named myTextgetName in interface IParameterDescriptorpublic Object getParent()
IParameterDescriptorgetParent in interface IParameterDescriptorpublic Method getReadMethod()
IParameterDescriptorgetReadMethod in interface IParameterDescriptorpublic String getShortDescription()
IParameterDescriptorgetShortDescription in interface IParameterDescriptorpublic Type getType()
IParameterDescriptorgetType in interface IParameterDescriptorpublic Method getWriteMethod()
IParameterDescriptorgetWriteMethod in interface IParameterDescriptorpublic void setDisplayName(String displayName)
IParameterDescriptorsetDisplayName in interface IParameterDescriptordisplayName - the new localizable name of this parameter.public void setShortDescription(String shortDescription)
IParameterDescriptorsetShortDescription in interface IParameterDescriptorshortDescription - the new short localizable description of this parameter.public boolean isWithLabel()
public void setWithLabel(boolean withLabel)
withLabel - true if this UI part should be displayed with a label.public boolean isVertical()
public void setVertical(boolean vertical)
vertical - the new flag indicating if this UI part should be arranged vertically.public boolean isLabelFlushed()
public void setLabelFlushed(boolean labelFlushed)
labelFlushed - the new flag indicating if the label of this UI part should be flushed next to the part.public IContainerPart getContainer()
public void setContainer(IContainerPart container)
container - the new container part for this part.public void setMasterPart(AbstractPart masterPart, boolean enabledOnSelection)
masterPart - the UI part that enables or disables this part.enabledOnSelection - true if this part is enabled only when the master
part is selected, false to enable this part when the master part is not selected.public AbstractPart getMasterPart()
public boolean isEnabledOnSelection()
public boolean isLabelNextToInput()
public void setLabelNextToInput(boolean labelNextToInput)
labelNextToInput - true to set the indicator so the label for this part is to be displayed next to the input field.protected void checkType()
OkapiNotImplementedException - if this UI part does not support
the type of the parameter description it is created with.Copyright © 2022. All rights reserved.