public abstract class PhantomCBarControl extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
ADD_FRAME |
static int |
ALIGN_BOTTOM |
static int |
ALIGN_LEFT |
static int |
ALIGN_MASK |
static int |
ALIGN_RIGHT |
static int |
ALIGN_TOP |
protected PhantomCBar |
bar
The bar data
|
protected int |
barControlBGColor
Control background color (From ini file, Should this be moved to properties?).
|
protected int |
barControlFGColor
Control foreground color (From ini file, Should this be moved to properties?).
|
protected int |
barControlFont
Control font (From ini file, Should this be moved to properties?).
|
static int |
BASE_SAVE_SIZE |
static int |
CF_DISPLAY_HIDDEN |
static int |
CF_GREYOFF |
static int |
CF_RECTTOTEXT |
static int |
CF_XLATE |
protected String |
contents
Text contents.
|
protected int |
controlFlags
Control flags.
|
protected int |
controlType
Control type index, defined in PhantomCBar.
|
protected String |
helpID
Help ID reference.
|
protected String |
label
Control label.
|
protected String |
object
Object reference.
|
static int |
RECT_2D |
static int |
RECT_3D_IN |
static int |
RECT_3D_OUT |
static int |
RECT_MASK |
static int |
RECT_NONE |
protected int |
subControlType
Sub control type, for instance short time.
|
protected String |
text
Text reference.
|
static int |
TXT_JUST_CENTER |
static int |
TXT_JUST_MASK |
static int |
TXT_JUST_RIGHT |
protected int |
width
Width of bar control (or -1 default, -2= dynamic width).
|
| Constructor and Description |
|---|
PhantomCBarControl()
Empty constructor for new properties.
|
PhantomCBarControl(PhantomCBar bar,
PhantomFile data)
This constructor to the bar control superclass reads the
general information for all bar controls:
subcontrol type and control flags.
|
| Modifier and Type | Method and Description |
|---|---|
void |
baseSave(PhantomOutputFile file)
Saves the base data to file.
|
protected int |
convertHorzJustification()
Convert old style horizontal justification to new property justification.
|
boolean |
doDisplayHidden()
Display hidden text.
|
boolean |
doTranslate()
Do translate.
|
String |
getClientClass()
Get class name for client class.
|
int |
getConnectedControlIndex(PhantomPanelData panel,
String name)
Gets the connected menu item or push button index.
|
int |
getControlFlags()
Returns the control flags
|
int |
getControlType()
Returns the control type
|
void |
getFontAndColors(IniFile ini,
int index)
Loads font and color settings from the opened ini-file BARFILE.PHB.ini from the
[base] section.
|
String |
getLabel()
Returns the label
|
int |
getSaveSize()
Get the size when saved to file.
|
int |
getSubControlType()
Returns the sub control type
|
VirtualCBarControl |
getVirtualControl(VirtualCBar bar,
PhantomCBarControl phantomControl)
Create virtual instance that corresponds to this class.
|
int |
getWidth()
Returns the width
|
boolean |
isHeightToText()
Set rect height to text.
|
abstract void |
save(PhantomOutputFile file)
Save the instance to file.
|
void |
setControlType(int type)
Sets the control type
|
void |
setWidth(int w)
Sets the width
|
protected PhantomCBar bar
protected int width
protected int controlType
protected int subControlType
public static final int RECT_3D_IN
public static final int RECT_3D_OUT
public static final int RECT_2D
public static final int RECT_NONE
public static final int RECT_MASK
public static final int TXT_JUST_CENTER
public static final int TXT_JUST_RIGHT
public static final int TXT_JUST_MASK
public static final int CF_GREYOFF
public static final int ADD_FRAME
public static final int ALIGN_BOTTOM
public static final int ALIGN_RIGHT
public static final int ALIGN_TOP
public static final int ALIGN_LEFT
public static final int ALIGN_MASK
public static final int CF_XLATE
public static final int CF_RECTTOTEXT
public static final int CF_DISPLAY_HIDDEN
public static final int BASE_SAVE_SIZE
protected int controlFlags
protected String contents
protected int barControlFont
protected int barControlFGColor
protected int barControlBGColor
protected String object
protected String label
protected String text
protected String helpID
public PhantomCBarControl(PhantomCBar bar, PhantomFile data) throws IOException
IOException - if an I/O error occurs.public PhantomCBarControl()
public void baseSave(PhantomOutputFile file) throws IOException
file - IOException - if an I/O error occurs.public void getFontAndColors(IniFile ini, int index)
public int getControlType()
public int getSubControlType()
public int getControlFlags()
public int getWidth()
public String getLabel()
public void setWidth(int w)
public void setControlType(int type)
public boolean doTranslate()
public boolean isHeightToText()
public boolean doDisplayHidden()
protected int convertHorzJustification()
public int getConnectedControlIndex(PhantomPanelData panel, String name)
public String getClientClass()
public VirtualCBarControl getVirtualControl(VirtualCBar bar, PhantomCBarControl phantomControl)
public abstract void save(PhantomOutputFile file) throws IOException
file - IOExceptionpublic int getSaveSize()
Phantom® and NetPhantom® are registered trademarks of Nexum Technologies SARL.
© Copyright Nexum Technologies SARL, 2011. All rights reserved.