com.leafdigital.ui.api
Interface SupportsMacIndent

All Known Subinterfaces:
Label, ListBox, Table

public interface SupportsMacIndent

Interface for widgets that support the BaseGroup function


Field Summary
static java.lang.String TYPE_BUTTON
          Add indent to match up with buttons.
static java.lang.String TYPE_EDIT
          Add indent to match up with edit boxes.
static java.lang.String TYPE_EDIT_LEGACY
          Legacy value so that old XML files using the "y/n" notation work.
static java.lang.String TYPE_NONE
          Do not add indent (this is default).
 
Method Summary
 void setMacIndent(boolean macIndent)
          Deprecated. Please use the more specific setMacIndent(String).
 void setMacIndent(java.lang.String type)
          On Mac OS X, most interactive control types gain an extra indent which allows the system space to display the blue focus ring around the control.
 

Field Detail

TYPE_EDIT

static final java.lang.String TYPE_EDIT
Add indent to match up with edit boxes.

See Also:
Constant Field Values

TYPE_EDIT_LEGACY

static final java.lang.String TYPE_EDIT_LEGACY
Legacy value so that old XML files using the "y/n" notation work.

See Also:
Constant Field Values

TYPE_BUTTON

static final java.lang.String TYPE_BUTTON
Add indent to match up with buttons.

See Also:
Constant Field Values

TYPE_NONE

static final java.lang.String TYPE_NONE
Do not add indent (this is default).

See Also:
Constant Field Values
Method Detail

setMacIndent

void setMacIndent(boolean macIndent)
Deprecated. Please use the more specific setMacIndent(String).

On Mac OS X, most interactive control types gain an extra indent which allows the system space to display the blue focus ring around the control. Labels are not interactive so do not have the extra indent. When a label should line up horizontally with such a control, this option can be used to add an extra left indent on Mac only.

Parameters:
macIndent - True to add extra indent on Mac

setMacIndent

void setMacIndent(java.lang.String type)
                  throws java.lang.IllegalArgumentException
On Mac OS X, most interactive control types gain an extra indent which allows the system space to display the blue focus ring around the control. Labels are not interactive so do not have the extra indent. When a label should line up horizontally with such a control, this option can be used to add an extra left indent on Mac only.

Parameters:
type - TYPE_xx constant (usually "edit" or "button" or "n")
Throws:
java.lang.IllegalArgumentException - If the type is unknown


Copyright © 2011 Samuel Marshall. All rights reserved.