public class VirtualCBar extends Object implements VirtualUserWindowInterface, VirtualChangeEvent
TOOLTIP_TEXT| Constructor and Description |
|---|
VirtualCBar(VirtualPanel panel,
VirtualCUserWindow userWindow,
PhantomControl bd,
PhantomCBar barData)
This constructor...
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addBarControl(PhantomCBarControl phantomControl,
String beforeLabel)
Method that adds a new virtual bar control to the bar.
|
boolean |
areTextPromptsAlwaysRefreshed()
If the class has a need to refresh the text prompt at all host
changed, it must reply
true to this method call. |
boolean |
callControl()
"Calls" the control in question.
|
void |
clientUpdated(Transaction trans)
This method is called from the VirtualPanel
to cause a client transaction to update the panels.
|
void |
createBar(Transaction trans)
This method creates a create transaction which is sent to the
client.
|
boolean |
deleteAll()
Deletes all lines in a list capable control.
|
boolean |
deleteBarControl(VirtualCBarControl barControl)
Method that deletes the specified bar control
|
boolean |
deleteLine(int line)
Deletes a line in a list capable control.
|
void |
dispose()
This method is called whenever a panel has been disposed of,
in order to remove listeners, etc, in order to free up memory.
|
VirtualCBarControl |
fetchBarControl(String label)
Methods that returns the bar control with the specified
argument label, which is either the label of the object
or the index to the object
|
VirtualCBarControl |
fetchControlWithLabel(String label)
Method that returns the bar control object specified by the label argument
Called from fetchBarControl
|
void |
fireCreate(Transaction trans)
This method is used to fire a create message to the client by
a virtual class.
|
void |
fireUpdate(Transaction trans)
This method is used to fire an update message to the client by
a virtual class.
|
int |
getBackgroundColor()
Gets the background color of an item.
|
PhantomControl |
getBasicData()
Returns the basic data
|
String |
getCell(int col,
int line)
Gets a single cell in a list capable control.
|
se.entra.phantom.geditor.NPPColor |
getColor()
Get color of an item.
|
boolean |
getCreateWhenUpdate()
Should next update be a create.
|
int |
getFont()
Gets the font index of an item.
|
int |
getForegroundColor()
Gets the foreground color of an item.
|
int |
getLength()
Gets the control length.
|
String |
getLine(int line)
Sets a line in a list capable control.
|
int |
getLineCount()
Gets the line count for a list capable control.
|
int |
getNextSelection(int line)
Gets the next selected line in a list capable control.
|
VirtualPanel |
getPanel()
Returns the underlying panel
|
Object |
getProperty(String propertyName)
Gets a property of a virtual component.
|
String |
getText()
Gets the text of an item.
|
VirtualCUserWindow |
getUserWindow()
Get owner user window.
|
boolean |
hasChanged()
Checks if the base control data with possible text data has changed.
|
void |
hostScreenChanged(PhantomHostScreen screen)
The connected host screen has changed.
|
boolean |
insertLine(String data,
int line)
Inserts a line in a list capable control.
|
int |
isChecked()
Gets the check state of a control (e.g.
|
boolean |
isEnabled()
Gets the enabled state of an item.
|
void |
issueAction(Transaction trans)
This method is invoked by the server kernel whenever a bar button has been pressed
on the client side.
|
boolean |
isVisible()
Gets the visibility state of an item.
|
void |
refresh()
This method is used to refresh all virtual controls when e.g.
|
void |
refreshTextPrompts()
This method is used to refresh all virtual controls when e.g.
|
boolean |
selectField()
Performs a visual selection of the field.
|
boolean |
setBackgroundColor(int colorIndex)
Sets the background color of an item.
|
boolean |
setCell(int col,
int line,
String data)
Sets a single cell in a list capable control.
|
void |
setChanged()
This method is used to indicate that a virtual class has changed and that it
needs to update the client.
|
boolean |
setChecked(int state)
Sets the check state of a control (e.g.
|
boolean |
setColor(se.entra.phantom.geditor.NPPColor newcolor)
Set the color of an item.
|
boolean |
setEnabled(boolean state)
Sets the enabled state of an item.
|
boolean |
setFileFromList(PhantomOutputFile pFile)
Insert the contents of a list into a file.
|
boolean |
setFocus()
Sets focus in the panel to this item.
|
boolean |
setFocus(PhantomHostFieldLocation hostFieldLocation)
Sets focus in the panel to this item according
to a host field location.
|
boolean |
setFont(int font)
Sets the font index of an item.
|
boolean |
setForegroundColor(int colorIndex)
Sets the foreground color of an item.
|
boolean |
setLength(int length)
Sets the control length.
|
boolean |
setLine(String data,
int line)
Sets a line in a list capable control.
|
boolean |
setListFromFile(String fileName)
Sets the contents of a list capable control from a file.
|
boolean |
setProperty(String propertyName,
Object property)
Sets a property of a virtual component.
|
boolean |
setSelection(int line,
boolean select)
Sets a line as selected (or not) in a list capable control.
|
boolean |
setText(String text)
Sets the text of an item.
|
boolean |
setVisible(boolean state)
Sets the visibility state of an item.
|
public VirtualCBar(VirtualPanel panel, VirtualCUserWindow userWindow, PhantomControl bd, PhantomCBar barData)
public void dispose()
dispose in interface VirtualUserWindowInterfacepublic void setChanged()
setChanged in interface VirtualChangeEventpublic boolean hasChanged()
The text change flag is not checked in this method, the control subclassing this class is responsible to call "setChanged()" whenever any child component of the virtual control has changed. This will guarantee that the entire chane of components, even upwards in the tree will synchronize the client panels and components.
hasChanged in interface VirtualChangeEventpublic void refreshTextPrompts()
refreshTextPrompts in interface VirtualUserWindowInterfacepublic boolean areTextPromptsAlwaysRefreshed()
true to this method call.
Otherwise return false.areTextPromptsAlwaysRefreshed in interface VirtualUserWindowInterfacepublic void refresh()
refresh in interface VirtualUserWindowInterfacepublic void hostScreenChanged(PhantomHostScreen screen)
hostScreenChanged in interface VirtualUserWindowInterfacepublic void fireCreate(Transaction trans)
fireCreate in interface VirtualUserWindowInterfacepublic void createBar(Transaction trans)
public void fireUpdate(Transaction trans)
fireUpdate in interface VirtualUserWindowInterfacepublic void clientUpdated(Transaction trans)
clientUpdated in interface VirtualUserWindowInterfacepublic void issueAction(Transaction trans)
issueAction in interface VirtualUserWindowInterfacepublic VirtualPanel getPanel()
public PhantomControl getBasicData()
public VirtualCBarControl fetchBarControl(String label)
label - either a label string, or an index to a bar controlpublic VirtualCBarControl fetchControlWithLabel(String label)
label - the label of the bar control that should be searched forpublic boolean deleteBarControl(VirtualCBarControl barControl)
barControl - the barControl that should be deletedpublic boolean addBarControl(PhantomCBarControl phantomControl, String beforeLabel)
phantomControl - the loaded phantom bar control that from which
virtual bar control should be created.beforeLabel - indicates the label of the bar control that should be
located before this control. Could be '-1' which means
that the bar control should be added last in the barpublic boolean setProperty(String propertyName, Object property)
setProperty in interface VirtualInterfacepublic Object getProperty(String propertyName)
getProperty in interface VirtualInterfacepublic boolean setText(String text)
setText in interface VirtualInterfacepublic String getText()
getText in interface VirtualInterfacepublic boolean setEnabled(boolean state)
setEnabled in interface VirtualInterfacepublic boolean isEnabled()
isEnabled in interface VirtualInterfacepublic boolean setVisible(boolean state)
setVisible in interface VirtualInterfacepublic boolean isVisible()
isVisible in interface VirtualInterfacepublic boolean setColor(se.entra.phantom.geditor.NPPColor newcolor)
setColor in interface VirtualInterfacepublic se.entra.phantom.geditor.NPPColor getColor()
getColor in interface VirtualInterfacepublic boolean setForegroundColor(int colorIndex)
setForegroundColor in interface VirtualInterfacepublic int getForegroundColor()
getForegroundColor in interface VirtualInterfacepublic boolean setBackgroundColor(int colorIndex)
setBackgroundColor in interface VirtualInterfacepublic int getBackgroundColor()
getBackgroundColor in interface VirtualInterfacepublic boolean setFont(int font)
setFont in interface VirtualInterfacepublic int getFont()
getFont in interface VirtualInterfacepublic boolean setFocus()
setFocus in interface VirtualInterfacepublic boolean setFocus(PhantomHostFieldLocation hostFieldLocation)
setFocus in interface VirtualInterfacepublic boolean selectField()
selectField in interface VirtualInterfacepublic int getLength()
getLength in interface VirtualInterfacepublic boolean setLength(int length)
setLength in interface VirtualInterfacepublic boolean setChecked(int state)
setChecked in interface VirtualInterfacepublic int isChecked()
isChecked in interface VirtualInterfacepublic int getLineCount()
getLineCount in interface VirtualInterfacepublic boolean insertLine(String data, int line)
insertLine in interface VirtualInterfacepublic boolean setLine(String data, int line)
setLine in interface VirtualInterfacepublic String getLine(int line)
getLine in interface VirtualInterfacepublic boolean deleteLine(int line)
deleteLine in interface VirtualInterfacepublic boolean deleteAll()
deleteAll in interface VirtualInterfacepublic boolean setCell(int col,
int line,
String data)
setCell in interface VirtualInterfacecol - The column for the cell.line - The line for the column.data - The data for the cell.public String getCell(int col, int line)
getCell in interface VirtualInterfacecol - The column for the cell.line - The line for the column.public boolean setSelection(int line,
boolean select)
setSelection in interface VirtualInterfacepublic int getNextSelection(int line)
getNextSelection in interface VirtualInterfacepublic boolean setFileFromList(PhantomOutputFile pFile)
setFileFromList in interface VirtualInterfacepublic boolean setListFromFile(String fileName)
setListFromFile in interface VirtualInterfacefileName - the file name.public boolean callControl()
callControl in interface VirtualInterfacepublic VirtualCUserWindow getUserWindow()
public boolean getCreateWhenUpdate()
Phantom® and NetPhantom® are registered trademarks of Mindus SARL.
© © Mindus SARL, 2024. All rights reserved.