Package com.uc4.api.objects
Class CodeTable
java.lang.Object
com.uc4.api.objects.UC4Object
com.uc4.api.objects.CodeTable
This class represents a Automic CodeTable object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncharReturns the alternative character of this code table.chargetCharacter(int row, int column) Gets the character at the given position in the code table.booleanWhether or not the code table has an alternative character.header()Returns the header data of this object.booleanisAlternativeCharacter(int row, int column) Whether or not the character at the given position is marked as alternative character.booleanReturnstrueif this Object can be executed.booleanisTextCharacter(int row, int column) Whether or not the character at the given position is marked as text character.voidsetAttributes(int row, int column, boolean textCharacter, boolean alternativeCharacter) Sets an attribute for a character at the given position in the code table.voidsetCharacter(int row, int column, char value) Sets a character (value) for the given position in the code table.Methods inherited from class com.uc4.api.objects.UC4Object
docu, getAccess, getIdnr, getModCount, getName, getObjectClient, getType, isOldVersion, load, store, validate
-
Constructor Details
-
CodeTable
public CodeTable()
-
-
Method Details
-
header
Returns the header data of this object. This is the information of the header tab in the dialog client.- Returns:
- header
-
setCharacter
public void setCharacter(int row, int column, char value) Sets a character (value) for the given position in the code table. The row and column must be in range [0,15].- Parameters:
row- Row must be in range [0,15].column- Column must be in range [0,15].value- The character.
-
getCharacter
public char getCharacter(int row, int column) Gets the character at the given position in the code table. The row and column must be in range [0,15].- Parameters:
row- Row must be in range [0,15].column- Column must be in range [0,15].- Returns:
- The character at the given position in the code table or Unicode 0 if no character was set for this position.
-
setAttributes
public void setAttributes(int row, int column, boolean textCharacter, boolean alternativeCharacter) Sets an attribute for a character at the given position in the code table. At the moment there are two attributes which can be set. Attribute text character and alternative character. If an alternative character was set already further will be ignored as long as the current one is reseted.- Parameters:
row- Row must be in range [0,15].column- Column must be in range [0,15].textCharacter- Activate the option text character if this character should be considered for the conversion.alternativeCharacter- The alternative character is used if the requested character is not found. Only one character can be defined as alternative character.
-
isTextCharacter
public boolean isTextCharacter(int row, int column) Whether or not the character at the given position is marked as text character.- Parameters:
row- Row must be in range [0,15].column- Column must be in range [0,15].- Returns:
- True if marked as text character otherwise false.
-
isAlternativeCharacter
public boolean isAlternativeCharacter(int row, int column) Whether or not the character at the given position is marked as alternative character.- Parameters:
row- Row must be in range [0,15].column- Column must be in range [0,15].- Returns:
- True if marked as alternative character otherwise false.
-
hasAlternativeCharacter
public boolean hasAlternativeCharacter()Whether or not the code table has an alternative character.- Returns:
- True is returned if there is one otherwise false.
-
getAlternativeCharacter
public char getAlternativeCharacter()Returns the alternative character of this code table. Might not be set. CallhasAlternativeCharacterfirst to check whether the code table has an alternative character. If there is no such alternative character this method will return Unicode 0.- Returns:
- The alternative character or Unicode 0.
-
isExecutable
public boolean isExecutable()Description copied from class:UC4ObjectReturnstrueif this Object can be executed.- Specified by:
isExecutablein classUC4Object- Returns:
- true if the Object can be executed, false if not.
-