public class IndentOptionsEditor extends OptionGroup implements CodeStyleSettingsCustomizable
CodeStyleSettingsCustomizable.BlankLinesOption, CodeStyleSettingsCustomizable.CommenterOption, CodeStyleSettingsCustomizable.IndentOption, CodeStyleSettingsCustomizable.OptionAnchor, CodeStyleSettingsCustomizable.SpacingOption, CodeStyleSettingsCustomizable.WrappingOrBraceOption
Modifier and Type | Field and Description |
---|---|
protected javax.swing.JCheckBox |
myCbUseTab
Deprecated.
|
protected javax.swing.JTextField |
myIndentField
Deprecated.
|
protected javax.swing.JLabel |
myIndentLabel
Deprecated.
|
protected javax.swing.JTextField |
myTabSizeField
Deprecated.
|
protected javax.swing.JLabel |
myTabSizeLabel
Deprecated.
|
BLANK_LINES, BLANK_LINES_KEEP, BRACE_OPTIONS, BRACE_PLACEMENT_OPTIONS, BRACE_PLACEMENT_VALUES, BRACE_VALUES, SPACES_AROUND_OPERATORS, SPACES_BEFORE_KEYWORD, SPACES_BEFORE_LEFT_BRACE, SPACES_BEFORE_PARENTHESES, SPACES_IN_TERNARY_OPERATOR, SPACES_IN_TYPE_ARGUMENTS, SPACES_IN_TYPE_PARAMETERS, SPACES_OTHER, SPACES_WITHIN, SPACES_WITHIN_TYPE_ARGUMENTS, WRAP_ON_TYPING_OPTIONS, WRAP_ON_TYPING_VALUES, WRAP_OPTIONS, WRAP_OPTIONS_FOR_SINGLETON, WRAP_VALUES, WRAP_VALUES_FOR_SINGLETON, WRAPPING_ARRAY_INITIALIZER, WRAPPING_ASSERT_STATEMENT, WRAPPING_ASSIGNMENT, WRAPPING_BINARY_OPERATION, WRAPPING_BRACES, WRAPPING_CALL_CHAIN, WRAPPING_COMMENTS, WRAPPING_DOWHILE_STATEMENT, WRAPPING_EXTENDS_KEYWORD, WRAPPING_EXTENDS_LIST, WRAPPING_FIELDS_VARIABLES_GROUPS, WRAPPING_FOR_STATEMENT, WRAPPING_IF_STATEMENT, WRAPPING_KEEP, WRAPPING_METHOD_ARGUMENTS_WRAPPING, WRAPPING_METHOD_PARAMETERS, WRAPPING_METHOD_PARENTHESES, WRAPPING_MODIFIER_LIST, WRAPPING_SWITCH_STATEMENT, WRAPPING_TERNARY_OPERATION, WRAPPING_THROWS_KEYWORD, WRAPPING_THROWS_LIST, WRAPPING_TRY_RESOURCE_LIST, WRAPPING_TRY_STATEMENT, WRAPPING_WHILE_STATEMENT
Constructor and Description |
---|
IndentOptionsEditor() |
IndentOptionsEditor(LanguageCodeStyleSettingsProvider provider) |
Modifier and Type | Method and Description |
---|---|
protected void |
addComponents() |
protected void |
addIndentField() |
protected void |
addTabOptions() |
protected void |
addTabSizeField() |
void |
apply(CodeStyleSettings settings,
CommonCodeStyleSettings.IndentOptions options) |
protected javax.swing.JTextField |
createIndentTextField()
Deprecated.
|
protected IntegerField |
createIndentTextField(java.lang.String valueName,
int minSize,
int maxSize,
int defaultValue) |
javax.swing.JPanel |
createPanel() |
protected int |
getFieldValue(javax.swing.JTextField field,
int minValue,
int defValue)
Deprecated.
Create
IntegerField and use IntegerField.getValue() instead. |
protected int |
getUIIndent() |
protected int |
getUITabSize() |
protected static boolean |
isFieldModified(javax.swing.JCheckBox checkBox,
boolean value) |
protected static boolean |
isFieldModified(javax.swing.JTextField textField,
int value) |
boolean |
isModified(CodeStyleSettings settings,
CommonCodeStyleSettings.IndentOptions options) |
void |
reset(CodeStyleSettings settings,
CommonCodeStyleSettings.IndentOptions options) |
void |
setEnabled(boolean enabled) |
protected void |
setVisible(boolean visible) |
void |
showAllStandardOptions() |
void |
showStandardOptions(java.lang.String... optionNames) |
add, add, add, add, findAnchor, getAnchor, getComponents, setAnchor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
moveStandardOption, renameStandardOption, showCustomOption, showCustomOption
@Deprecated protected javax.swing.JTextField myIndentField
@Deprecated protected javax.swing.JCheckBox myCbUseTab
@Deprecated protected javax.swing.JTextField myTabSizeField
@Deprecated protected javax.swing.JLabel myTabSizeLabel
@Deprecated protected javax.swing.JLabel myIndentLabel
public IndentOptionsEditor()
public IndentOptionsEditor(LanguageCodeStyleSettingsProvider provider)
provider
- The provider which will be used to customize the indent options editor. If null
is passed, no customization
will be carried out and thus all the available options will be shown.public javax.swing.JPanel createPanel()
createPanel
in class OptionGroup
protected void addComponents()
protected void addIndentField()
protected void addTabSizeField()
@Deprecated protected javax.swing.JTextField createIndentTextField()
createIndentTextField(String, int, int, int)
protected IntegerField createIndentTextField(java.lang.String valueName, int minSize, int maxSize, int defaultValue)
protected void addTabOptions()
public void showAllStandardOptions()
showAllStandardOptions
in interface CodeStyleSettingsCustomizable
public void showStandardOptions(java.lang.String... optionNames)
showStandardOptions
in interface CodeStyleSettingsCustomizable
protected static boolean isFieldModified(javax.swing.JCheckBox checkBox, boolean value)
protected static boolean isFieldModified(javax.swing.JTextField textField, int value)
public boolean isModified(CodeStyleSettings settings, CommonCodeStyleSettings.IndentOptions options)
protected int getUIIndent()
protected int getUITabSize()
public void apply(CodeStyleSettings settings, CommonCodeStyleSettings.IndentOptions options)
public void reset(CodeStyleSettings settings, CommonCodeStyleSettings.IndentOptions options)
@Deprecated protected int getFieldValue(javax.swing.JTextField field, int minValue, int defValue)
IntegerField
and use IntegerField.getValue()
instead.public void setEnabled(boolean enabled)
protected void setVisible(boolean visible)