public class BitMaskTextProp extends TextProp implements Cloneable
dataValue, maskInHeader, propName, sizeOfDataBlock
Constructor and Description |
---|
BitMaskTextProp(int sizeOfDataBlock,
int maskInHeader,
String overallName,
String[] subPropNames) |
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Clone, eg when you want to actually make use of one of these.
|
boolean[] |
getSubPropMatches()
Fetch the list of if the sub properties match or not
|
String[] |
getSubPropNames()
Fetch the list of the names of the sub properties
|
boolean |
getSubValue(int idx)
Fetch the true/false status of the subproperty with the given index
|
int |
getWriteMask()
As we're purely mask based, just set flags for stuff
that is set
|
void |
setSubValue(boolean value,
int idx)
Set the true/false status of the subproperty with the given index
|
void |
setValue(int val)
Set the value of the text property, and recompute the sub
properties based on it
|
public String[] getSubPropNames()
public boolean[] getSubPropMatches()
public int getWriteMask()
getWriteMask
in class TextProp
public void setValue(int val)
public boolean getSubValue(int idx)
public void setSubValue(boolean value, int idx)
Copyright © 2020. All rights reserved.