public class UIEditorOptions extends ChangeEventSource implements Copyable
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_GRID_SPACING
Default grid spacing for those LayoutAssistants supporting a grid.
|
static java.lang.String |
KEY_SETTINGS
Settings key used in conjunction with the IdeSettings object.
|
static int |
PACKAGE_SCOPE
Declaration scope of Java default 'package private'.
|
static int |
PRIVATE_SCOPE
Declration scope of private.
|
static int |
PROTECTED_SCOPE
Declaration scope of protected.
|
static int |
PUBLIC_SCOPE
Declaration scope of public.
|
static java.lang.String[] |
TAGS
Declaration tags.
|
_hash
Constructor and Description |
---|
UIEditorOptions()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
copyTo(java.lang.Object target)
Copy all settings to the given target.
|
protected void |
copyToImpl(UIEditorOptions copy)
Copy settings from this instance into the given instance.
|
int |
getDefaultMemberScope()
Get the default member scope to use during source generation.
|
int |
getGridSpacing()
Get the grid spacing to be used for those LayoutAssistants that support
grid behavior.
|
boolean |
isGridVisible()
Determine whether or not to display grid effects when working with
LayoutAssistants that support a grid.
|
boolean |
isMatchExistingCode()
Determine whether or not to match existing inner class declarations during
source generation.
|
boolean |
isSnapToGrid()
Determine whether or not to round coordinates and dimensions to the nearest
factor of grid spacing when working with LayoutAssistants that support grid
spacing.
|
boolean |
isUseAnonymousInnerClass()
Determine whether or not to use anonymous inner classes during source
generation.
|
boolean |
isUseBeansInstantiate()
Determine whether or not to use Beans.instantiate during source
generation of JavaBean variables.
|
void |
setDefaultMemberScope(int defaultMemberScope)
Set the default member scope to be used during source generation.
|
void |
setGridSpacing(int gridSpacing)
Set the grid spacing to be used by those LayoutAssistants that support
grid behavior.
|
void |
setGridVisible(boolean gridVisible)
Set whether or not to display grid effects when working with
LayoutAssistants that support a grid.
|
void |
setMatchExistingCode(boolean matchExistingCode)
Set whether or not to match existing style of inner classes during source
generation.
|
void |
setSnapToGrid(boolean snapToGrid)
Set whether or not to round coordinates and dimensions to the nearest
factor of grid spacing when working with LayoutAssistants that support grid
spacing.
|
void |
setUseAnonymousInnerClass(boolean useAnonymousInnerClass)
Set whether or not anonymous inner classes are to be used during source
generation.
|
void |
setUseBeansInstantiate(boolean useBeansInstantiate)
Set whether or not to use Beans.instantiate during source generation of
JavaBean variables.
|
addChangeListener, fireChangeEvent, fireChangeEvent, removeChangeListener, setUseObjectEquals
addStructureChangeListener, containsKey, copyToImpl, equals, equalsImpl, findOrCreate, forcedCopyTo, getHashStructure, removeStructureChangeListener, useObjectEquals
public static final java.lang.String KEY_SETTINGS
public static final int DEFAULT_GRID_SPACING
public static final int PUBLIC_SCOPE
public static final int PROTECTED_SCOPE
public static final int PACKAGE_SCOPE
public static final int PRIVATE_SCOPE
public static final java.lang.String[] TAGS
public boolean isUseAnonymousInnerClass()
setUseAnonymousInnerClass(boolean)
public void setUseAnonymousInnerClass(boolean useAnonymousInnerClass)
useAnonymousInnerClass
- whether or not to use anonymouse inner
classes.#isAnonymousInnerClass
public boolean isMatchExistingCode()
setMatchExistingCode(boolean)
public void setMatchExistingCode(boolean matchExistingCode)
matchExistingCode
- whether or not to use match existing codeisMatchExistingCode()
public int getDefaultMemberScope()
setDefaultMemberScope(int)
,
#PUBLIC
,
#PROTECTED
,
#PACKAGE
,
#PRIVATE
public void setDefaultMemberScope(int defaultMemberScope)
defaultMemberScope
- one of PUBLIC, PROTECTED, PACKAGE, PRIVATEgetDefaultMemberScope()
,
#PUBLIC
,
#PROTECTED
,
#PACKAGE
,
#PRIVATE
public int getGridSpacing()
setGridSpacing(int)
public void setGridSpacing(int gridSpacing)
gridSpacing
- the grid spacing in pixels to usegetGridSpacing()
public boolean isSnapToGrid()
setSnapToGrid(boolean)
,
getGridSpacing()
,
setGridSpacing(int)
public void setSnapToGrid(boolean snapToGrid)
snapToGrid
- whether or not to round coordinates and dimensionsisSnapToGrid()
,
getGridSpacing()
,
setGridSpacing(int)
public boolean isGridVisible()
setGridVisible(boolean)
public void setGridVisible(boolean gridVisible)
gridVisible
- whether or not to display grid effectsisGridVisible()
public boolean isUseBeansInstantiate()
setUseBeansInstantiate(boolean)
,
java.beans.Beans.instantiate
public void setUseBeansInstantiate(boolean useBeansInstantiate)
useBeansInstantiate
- whether or not to use Beans.instantiateisUseBeansInstantiate()
,
java.beans.Beans.instantiate
public java.lang.Object copyTo(java.lang.Object target)
copyTo
in interface Copyable
copyTo
in class ChangeEventSource
target
- a UIEditorOptions into which to copy all settingsprotected final void copyToImpl(UIEditorOptions copy)
copy
- the UIEditorOptions in which to copy our values.