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
StaticTextData
interface.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 boolean
equals(Object obj)
Compares this object with another one.TextIconAlignment
getAlignment()
Returns the alignment of the text and icon.Object
getIcon()
Returns the icon.String
getText()
Returns the text.int
hashCode()
Returns a hash code for this object.void
setAlignment(TextIconAlignment alignment)
Sets the alignment of the text and icon.void
setIcon(Object icon)
Sets the icon.void
setText(String text)
Sets the text.
-
-
-
Method Detail
-
getAlignment
public TextIconAlignment getAlignment()
Returns the alignment of the text and icon.- Specified by:
getAlignment
in interfaceStaticTextData
- Returns:
- the alignment
-
setAlignment
public void setAlignment(TextIconAlignment alignment)
Sets the alignment of the text and icon.- Specified by:
setAlignment
in interfaceStaticTextData
- Parameters:
alignment
- the alignment
-
getIcon
public Object getIcon()
Returns the icon.- Specified by:
getIcon
in interfaceStaticTextData
- Returns:
- the icon
-
setIcon
public void setIcon(Object icon)
Sets the icon.- Specified by:
setIcon
in interfaceStaticTextData
- Parameters:
icon
- the icon
-
getText
public String getText()
Returns the text.- Specified by:
getText
in interfaceStaticTextData
- Returns:
- the text
-
setText
public void setText(String text)
Sets the text.- Specified by:
setText
in interfaceStaticTextData
- Parameters:
text
- the text
-
equals
public boolean equals(Object obj)
Compares this object with another one. TwoStaticTextDataImpl
objects are equal if and only if all their member fields are equal.
-
-