ch.sahits.game.graphic.layout
Class AbstractEditableSahitsComponent<T>

java.lang.Object
  extended by ch.sahits.game.graphic.layout.AbstractSahitsComponent
      extended by ch.sahits.game.graphic.layout.AbstractEditableSahitsComponent<T>
Type Parameters:
T - type of the value
All Implemented Interfaces:
ISahitsComponent
Direct Known Subclasses:
TextInput

public abstract class AbstractEditableSahitsComponent<T>
extends AbstractSahitsComponent

Component that can hold a single value that can be edited.

Author:
Andi Hotz, (c) Sahits GmbH, 2011 Created on Jun 6, 2011

Field Summary
private  Font font
           
private  T value
           
 
Fields inherited from class ch.sahits.game.graphic.layout.AbstractSahitsComponent
painter
 
Constructor Summary
AbstractEditableSahitsComponent()
           
 
Method Summary
 Font getFont()
          Retrieve the font
 T getValue()
           
 void setFont(Font font)
          Set the font
 void setValue(T value)
           
 
Methods inherited from class ch.sahits.game.graphic.layout.AbstractSahitsComponent
createVisualBounds, getBounds, getInsets, setBounds, setInsets
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ch.sahits.game.graphic.display.ISahitsComponent
getPreferredSize, paint
 

Field Detail

value

private T value

font

private Font font
Constructor Detail

AbstractEditableSahitsComponent

public AbstractEditableSahitsComponent()
Method Detail

getValue

public T getValue()

setValue

public void setValue(T value)

getFont

public Font getFont()
Description copied from interface: ISahitsComponent
Retrieve the font

Returns:

setFont

public void setFont(Font font)
Description copied from interface: ISahitsComponent
Set the font



Copyright © 2011 Sahits GmbH. All Rights Reserved.