nextapp.echoservlet
Interface Alignment

All Known Implementing Classes:
AbstractButtonUI, ButtonUI, CButtonUI, CheckBoxUI, ConfirmButtonUI, DropDownBoxUI, HidingSlidingPanelUI, HorizontalPanelUI, HtmlTemplatePanelUI, JavaScriptButtonUI, JspTemplatePanelUI, LabelUI, LabelUI, MenuItemUI, MenuUI, NewsTickerUI, PanelUI, PanelUI, PushButtonUI, RadioButtonUI, ScrollableBoxUI, ScrollablePanel2UI, ScrollablePanelUI, SubmitButtonUI, ToggleButtonUI

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

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

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)