NextApp Echo
App Container 1.1.4

nextapp.echoservlet
Interface Alignment

All Known Implementing Classes:
AbstractButtonUI, LabelUI, PanelUI

public interface Alignment

An interface implemented by ComponentPeers that support alignment. This interface is used by components such as Grid and Table, which will set alignment attributes on <td> tags based on the values returned.


Method Summary
 int getHorizontalAlignment()
          Returns the horizontal alignment of a represented component.
 int getVerticalAlignment()
          Returns the vertical alignment of a represented component.
 

Method Detail

getHorizontalAlignment

public int getHorizontalAlignment()
Returns the horizontal alignment of a represented component.

Returns:
The horizontal alignment of a represented component, one of the following values:
  • EchoConstants.LEFT
  • EchoConstants.CENTER
  • EchoConstants.RIGHT
  • 0 (use default)

getVerticalAlignment

public int getVerticalAlignment()
Returns the vertical alignment of a represented component.

Returns:
The vertical alignment of a represented component, one of the following values:
  • EchoConstants.TOP
  • EchoConstants.CENTER
  • EchoConstants.BOTTOM
  • 0 (use default)

NextApp Echo
App Container 1.1.4