Class StaticTextDataImpl
- java.lang.Object
-
- net.sf.jguiraffe.gui.builder.components.tags.StaticTextDataImpl
-
- All Implemented Interfaces:
StaticTextData
public class StaticTextDataImpl extends Object implements StaticTextData
A default implementation of the
StaticTextDatainterface.This class defines the required properties and corresponding accessor methods.
- Version:
- $Id: StaticTextDataImpl.java 205 2012-01-29 18:29:57Z oheger $
- Author:
- Oliver Heger
-
-
Constructor Summary
Constructors Constructor Description StaticTextDataImpl()Creates a new instance ofStaticTextDataImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)Compares this object with another one.TextIconAlignmentgetAlignment()Returns the alignment of the text and icon.ObjectgetIcon()Returns the icon.StringgetText()Returns the text.inthashCode()Returns a hash code for this object.voidsetAlignment(TextIconAlignment alignment)Sets the alignment of the text and icon.voidsetIcon(Object icon)Sets the icon.voidsetText(String text)Sets the text.
-
-
-
Method Detail
-
getAlignment
public TextIconAlignment getAlignment()
Returns the alignment of the text and icon.- Specified by:
getAlignmentin interfaceStaticTextData- Returns:
- the alignment
-
setAlignment
public void setAlignment(TextIconAlignment alignment)
Sets the alignment of the text and icon.- Specified by:
setAlignmentin interfaceStaticTextData- Parameters:
alignment- the alignment
-
getIcon
public Object getIcon()
Returns the icon.- Specified by:
getIconin interfaceStaticTextData- Returns:
- the icon
-
setIcon
public void setIcon(Object icon)
Sets the icon.- Specified by:
setIconin interfaceStaticTextData- Parameters:
icon- the icon
-
getText
public String getText()
Returns the text.- Specified by:
getTextin interfaceStaticTextData- Returns:
- the text
-
setText
public void setText(String text)
Sets the text.- Specified by:
setTextin interfaceStaticTextData- Parameters:
text- the text
-
equals
public boolean equals(Object obj)
Compares this object with another one. TwoStaticTextDataImplobjects are equal if and only if all their member fields are equal.
-
-