com.tirsen.angkor.widget
Class ImageButton

java.lang.Object
  |
  +--com.tirsen.angkor.Component
        |
        +--com.tirsen.angkor.widget.ImageButton
All Implemented Interfaces:
ActionSource, java.io.Serializable, View

public class ImageButton
extends Component
implements ActionSource

Version:
$Revision: 1.4 $
Author:
Jon Tirs´n (tirsen@users.sourceforge.net)
See Also:
Serialized Form

Constructor Summary
ImageButton()
           
ImageButton(Action action)
           
ImageButton(java.lang.String id)
           
 
Method Summary
 void addActionListener(ActionListener listener)
           
 Action getAction()
           
 java.lang.String getImageURL()
           
 boolean isParsing()
           
 void parse(RenderContext context)
          When a view has registered during rendering for parsing in the RenderContext the context will call this method on the next request.
 void removeActionListener(ActionListener listener)
           
 void render(RenderContext context)
          Render this view on the given context if the view is visible.
 void setAction(Action action)
           
 void setImageURL(java.lang.String label)
           
 void signalActionEvent()
           
 java.lang.String toString()
           
 
Methods inherited from class com.tirsen.angkor.Component
allocateUniqueId, getAttribute, getContainer, getId, getRenderContext, getVisibleIndex, isDebugTables, isVisible, setAttribute, setContainer, setId, setVisible, uniqueId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImageButton

public ImageButton(java.lang.String id)

ImageButton

public ImageButton()

ImageButton

public ImageButton(Action action)
Method Detail

setAction

public void setAction(Action action)
Specified by:
setAction in interface ActionSource

getAction

public Action getAction()
Specified by:
getAction in interface ActionSource

addActionListener

public void addActionListener(ActionListener listener)
Specified by:
addActionListener in interface ActionSource

removeActionListener

public void removeActionListener(ActionListener listener)
Specified by:
removeActionListener in interface ActionSource

signalActionEvent

public void signalActionEvent()
Specified by:
signalActionEvent in interface ActionSource

setImageURL

public void setImageURL(java.lang.String label)

isParsing

public boolean isParsing()
Overrides:
isParsing in class Component

getImageURL

public java.lang.String getImageURL()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

render

public void render(RenderContext context)
            throws java.io.IOException
Description copied from interface: View
Render this view on the given context if the view is visible. Performed during render-phase.

Specified by:
render in interface View
Specified by:
render in class Component
java.io.IOException
See Also:
View.setVisible(boolean), View.isVisible()

parse

public void parse(RenderContext context)
Description copied from interface: View
When a view has registered during rendering for parsing in the RenderContext the context will call this method on the next request. The view is responsible for parsing the request based on it's unique id and update models and sending events based on the request. In most cases the EventQueue should be used to send the events. This ensures that the models are all correctly updated before the events are actually processed. This is important since controllers (whom processes the events) must rely on this to process events correctly.

Specified by:
parse in interface View
Overrides:
parse in class Component


Copyright © 2002-2002 . All Rights Reserved.