|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object cz.cuni.amis.pogamut.base.communication.messages.CommandMessage cz.cuni.amis.pogamut.ut2004.communication.messages.gbcommands.DialogItem
public class DialogItem
Representation of the GameBots2004 command DLGITEM. Specifies properties of a new dialog component.
Field Summary | |
---|---|
protected java.lang.String |
Action
Applicable for: BUTTON, IMAGE. |
protected java.lang.String |
Background
Applicable for: PANEL, BUTTON. |
protected java.awt.Color |
BgColor
Applicable for: PANEL, BUTTON. |
protected java.awt.Color |
Border
Applicable for: PANEL, BUTTON. |
protected java.lang.String |
Checked
Applicable for: OPTION. |
protected java.lang.String |
DialogId
Id of dialog, which should the message alter. |
protected java.lang.String |
Effect
What should this message do. |
protected java.lang.String |
Id
Identification of this component. |
protected java.lang.String |
Image
Applicable for: IMAGE. |
protected java.lang.String |
Mode
Applicable for: OPTIONLIST. |
protected java.lang.String |
NotChecked
Applicable for: OPTION. |
protected java.awt.geom.Point2D |
Origin
Applicable for: IMAGE. |
protected java.lang.String |
Parent
Id of parent component. |
protected java.lang.String |
Player
Name of the player on who's HUD should the dialog show. |
protected java.awt.geom.Point2D |
Position
Applicable for: PANEL, BUTTON, TEXT, OPTIONLIST, IMAGE. |
static java.lang.String |
PROTOTYPE
Example how the message looks like - used during parser tests. |
protected java.awt.geom.Dimension2D |
Scale
Applicable for: IMAGE. |
protected java.awt.geom.Dimension2D |
Size
Applicable for: PANEL, BUTTON, TEXT, OPTIONLIST, IMAGE. |
protected java.lang.String |
Text
Applicable for: TEXT, BUTTON, OPTION. |
protected java.awt.Color |
TextColor
Applicable for: TEXT, BUTTON, OPTION. |
protected java.lang.String |
Type
Type of the new component. |
Constructor Summary | |
---|---|
DialogItem()
Creates new instance of command DialogItem. |
|
DialogItem(DialogItem original)
Cloning constructor. |
|
DialogItem(java.lang.String Player,
java.lang.String DialogId,
java.lang.String Effect,
java.lang.String Type,
java.lang.String Id,
java.lang.String Parent,
java.awt.geom.Dimension2D Size,
java.awt.geom.Point2D Position,
java.lang.String Background,
java.awt.Color BgColor,
java.awt.Color Border,
java.lang.String Text,
java.awt.Color TextColor,
java.lang.String Action,
java.lang.String Mode,
java.lang.String Checked,
java.lang.String NotChecked,
java.lang.String Image,
java.awt.geom.Point2D Origin,
java.awt.geom.Dimension2D Scale)
Creates new instance of command DialogItem. |
Method Summary | |
---|---|
java.lang.String |
getAction()
Applicable for: BUTTON, IMAGE. |
java.lang.String |
getBackground()
Applicable for: PANEL, BUTTON. |
java.awt.Color |
getBgColor()
Applicable for: PANEL, BUTTON. |
java.awt.Color |
getBorder()
Applicable for: PANEL, BUTTON. |
java.lang.String |
getChecked()
Applicable for: OPTION. |
java.lang.String |
getDialogId()
Id of dialog, which should the message alter. |
java.lang.String |
getEffect()
What should this message do. |
java.lang.String |
getId()
Identification of this component. |
java.lang.String |
getImage()
Applicable for: IMAGE. |
java.lang.String |
getMode()
Applicable for: OPTIONLIST. |
java.lang.String |
getNotChecked()
Applicable for: OPTION. |
java.awt.geom.Point2D |
getOrigin()
Applicable for: IMAGE. |
java.lang.String |
getParent()
Id of parent component. |
java.lang.String |
getPlayer()
Name of the player on who's HUD should the dialog show. |
java.awt.geom.Point2D |
getPosition()
Applicable for: PANEL, BUTTON, TEXT, OPTIONLIST, IMAGE. |
java.awt.geom.Dimension2D |
getScale()
Applicable for: IMAGE. |
java.awt.geom.Dimension2D |
getSize()
Applicable for: PANEL, BUTTON, TEXT, OPTIONLIST, IMAGE. |
java.lang.String |
getText()
Applicable for: TEXT, BUTTON, OPTION. |
java.awt.Color |
getTextColor()
Applicable for: TEXT, BUTTON, OPTION. |
java.lang.String |
getType()
Type of the new component. |
DialogItem |
setAction(java.lang.String Action)
Applicable for: BUTTON, IMAGE. |
DialogItem |
setBackground(java.lang.String Background)
Applicable for: PANEL, BUTTON. |
DialogItem |
setBgColor(java.awt.Color BgColor)
Applicable for: PANEL, BUTTON. |
DialogItem |
setBorder(java.awt.Color Border)
Applicable for: PANEL, BUTTON. |
DialogItem |
setChecked(java.lang.String Checked)
Applicable for: OPTION. |
DialogItem |
setDialogId(java.lang.String DialogId)
Id of dialog, which should the message alter. |
DialogItem |
setEffect(java.lang.String Effect)
What should this message do. |
DialogItem |
setId(java.lang.String Id)
Identification of this component. |
DialogItem |
setImage(java.lang.String Image)
Applicable for: IMAGE. |
DialogItem |
setMode(java.lang.String Mode)
Applicable for: OPTIONLIST. |
DialogItem |
setNotChecked(java.lang.String NotChecked)
Applicable for: OPTION. |
DialogItem |
setOrigin(java.awt.geom.Point2D Origin)
Applicable for: IMAGE. |
DialogItem |
setParent(java.lang.String Parent)
Id of parent component. |
DialogItem |
setPlayer(java.lang.String Player)
Name of the player on who's HUD should the dialog show. |
DialogItem |
setPosition(java.awt.geom.Point2D Position)
Applicable for: PANEL, BUTTON, TEXT, OPTIONLIST, IMAGE. |
DialogItem |
setScale(java.awt.geom.Dimension2D Scale)
Applicable for: IMAGE. |
DialogItem |
setSize(java.awt.geom.Dimension2D Size)
Applicable for: PANEL, BUTTON, TEXT, OPTIONLIST, IMAGE. |
DialogItem |
setText(java.lang.String Text)
Applicable for: TEXT, BUTTON, OPTION. |
DialogItem |
setTextColor(java.awt.Color TextColor)
Applicable for: TEXT, BUTTON, OPTION. |
DialogItem |
setType(java.lang.String Type)
Type of the new component. |
java.lang.String |
toHtmlString()
|
java.lang.String |
toMessage()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROTOTYPE
protected java.lang.String Player
protected java.lang.String DialogId
protected java.lang.String Effect
protected java.lang.String Type
protected java.lang.String Id
protected java.lang.String Parent
protected java.awt.geom.Dimension2D Size
protected java.awt.geom.Point2D Position
protected java.lang.String Background
protected java.awt.Color BgColor
protected java.awt.Color Border
protected java.lang.String Text
protected java.awt.Color TextColor
protected java.lang.String Action
protected java.lang.String Mode
protected java.lang.String Checked
protected java.lang.String NotChecked
protected java.lang.String Image
protected java.awt.geom.Point2D Origin
protected java.awt.geom.Dimension2D Scale
Constructor Detail |
---|
public DialogItem(java.lang.String Player, java.lang.String DialogId, java.lang.String Effect, java.lang.String Type, java.lang.String Id, java.lang.String Parent, java.awt.geom.Dimension2D Size, java.awt.geom.Point2D Position, java.lang.String Background, java.awt.Color BgColor, java.awt.Color Border, java.lang.String Text, java.awt.Color TextColor, java.lang.String Action, java.lang.String Mode, java.lang.String Checked, java.lang.String NotChecked, java.lang.String Image, java.awt.geom.Point2D Origin, java.awt.geom.Dimension2D Scale)
Player
- Name of the player on who's HUD should the dialog show.DialogId
- Id of dialog, which should the message alter. If empty, actually constructed dialog is used.Effect
- What should this message do. Available are: ADD, EDIT.Type
- Type of the new component. Available are: PANEL, BUTTON, TEXT, IMAGE, OPTIONLIST, OPTION.Id
- Identification of this component. It should be an unique alphanumeric string without spaces.Parent
- Id of parent component. If left empty, the parent is dialog itself. Parent must be specified before the child.Size
- Applicable for: PANEL, BUTTON, TEXT, OPTIONLIST, IMAGE. A pair of values in form "Width,Height" where each is in range from 0 to 1 (relative portion of the parent component).Position
- Applicable for: PANEL, BUTTON, TEXT, OPTIONLIST, IMAGE. A pair of values in form "Left,Top" where each is in range from 0 to 1 (relative portion of the parent component).Background
- Applicable for: PANEL, BUTTON. Name of texture, which should be used as background.BgColor
- Applicable for: PANEL, BUTTON. RGBA color of background.Border
- Applicable for: PANEL, BUTTON. Triple of numbers from 0 to 255 separated by commas, specifying the RGB color of border.Text
- Applicable for: TEXT, BUTTON, OPTION. Text which should be written on the component.TextColor
- Applicable for: TEXT, BUTTON, OPTION. Color of text which should be written on the component as RGB triple of numbers from 0 to 255 separated by commas.Action
- Applicable for: BUTTON, IMAGE. Action which should be performed when the button is pressed. SUBMIT submits data from the dialog using DLGCMD message with Command SUBMIT, RESET resets the dialog and all other values send DLGCMD message with this value as Command - without closing the dialog.Mode
- Applicable for: OPTIONLIST. Either SINGLE - just one option can be selected at one moment (radio buttons), or MULTI - classic check boxes.Checked
- Applicable for: OPTION. Name of texture which should be used when the button is checked.NotChecked
- Applicable for: OPTION. Name of texture which should be used when the button is not checked.Image
- Applicable for: IMAGE. Name of texture of the image.Origin
- Applicable for: IMAGE. Left top origin point of the image.Scale
- Applicable for: IMAGE. Left top origin point of the image.public DialogItem()
public DialogItem(DialogItem original)
original
- Method Detail |
---|
public java.lang.String getPlayer()
public DialogItem setPlayer(java.lang.String Player)
public java.lang.String getDialogId()
public DialogItem setDialogId(java.lang.String DialogId)
public java.lang.String getEffect()
public DialogItem setEffect(java.lang.String Effect)
public java.lang.String getType()
public DialogItem setType(java.lang.String Type)
public java.lang.String getId()
public DialogItem setId(java.lang.String Id)
public java.lang.String getParent()
public DialogItem setParent(java.lang.String Parent)
public java.awt.geom.Dimension2D getSize()
public DialogItem setSize(java.awt.geom.Dimension2D Size)
public java.awt.geom.Point2D getPosition()
public DialogItem setPosition(java.awt.geom.Point2D Position)
public java.lang.String getBackground()
public DialogItem setBackground(java.lang.String Background)
public java.awt.Color getBgColor()
public DialogItem setBgColor(java.awt.Color BgColor)
public java.awt.Color getBorder()
public DialogItem setBorder(java.awt.Color Border)
public java.lang.String getText()
public DialogItem setText(java.lang.String Text)
public java.awt.Color getTextColor()
public DialogItem setTextColor(java.awt.Color TextColor)
public java.lang.String getAction()
public DialogItem setAction(java.lang.String Action)
public java.lang.String getMode()
public DialogItem setMode(java.lang.String Mode)
public java.lang.String getChecked()
public DialogItem setChecked(java.lang.String Checked)
public java.lang.String getNotChecked()
public DialogItem setNotChecked(java.lang.String NotChecked)
public java.lang.String getImage()
public DialogItem setImage(java.lang.String Image)
public java.awt.geom.Point2D getOrigin()
public DialogItem setOrigin(java.awt.geom.Point2D Origin)
public java.awt.geom.Dimension2D getScale()
public DialogItem setScale(java.awt.geom.Dimension2D Scale)
public java.lang.String toString()
toString
in class CommandMessage
public java.lang.String toHtmlString()
public java.lang.String toMessage()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |