Java 类com.intellij.uiDesigner.propertyInspector.PropertyEditor 实例源码

项目:intellij-ce-playground    文件:AbstractInsetsProperty.java   
public final PropertyEditor<Insets> getEditor() {
  if (myEditor == null) {
    myEditor = new IntRegexEditor<Insets>(Insets.class, myRenderer, new int[] { 0, 0, 0, 0 }) {
      public Insets getValue() throws Exception {
        // if a single number has been entered, interpret it as same value for all parts (IDEADEV-7330)
        try {
          int value = Integer.parseInt(myTf.getText());
          final Insets insets = new Insets(value, value, value, value);
          myTf.setText(myRenderer.formatText(insets));
          return insets;
        }
        catch(NumberFormatException ex) {
          return super.getValue();
        }
      }
    };
  }
  return myEditor;
}
项目:tools-idea    文件:AbstractInsetsProperty.java   
public final PropertyEditor<Insets> getEditor() {
  if (myEditor == null) {
    myEditor = new IntRegexEditor<Insets>(Insets.class, myRenderer, new int[] { 0, 0, 0, 0 }) {
      public Insets getValue() throws Exception {
        // if a single number has been entered, interpret it as same value for all parts (IDEADEV-7330)
        try {
          int value = Integer.parseInt(myTf.getText());
          final Insets insets = new Insets(value, value, value, value);
          myTf.setText(myRenderer.formatText(insets));
          return insets;
        }
        catch(NumberFormatException ex) {
          return super.getValue();
        }
      }
    };
  }
  return myEditor;
}
项目:consulo-ui-designer    文件:AbstractInsetsProperty.java   
public final PropertyEditor<Insets> getEditor() {
  if (myEditor == null) {
    myEditor = new IntRegexEditor<Insets>(Insets.class, myRenderer, new int[] { 0, 0, 0, 0 }) {
      public Insets getValue() throws Exception {
        // if a single number has been entered, interpret it as same value for all parts (IDEADEV-7330)
        try {
          int value = Integer.parseInt(myTf.getText());
          final Insets insets = new Insets(value, value, value, value);
          myTf.setText(myRenderer.formatText(insets));
          return insets;
        }
        catch(NumberFormatException ex) {
          return super.getValue();
        }
      }
    };
  }
  return myEditor;
}
项目:intellij-ce-playground    文件:Palette.java   
private void updateUI(final Property property) {
  final PropertyRenderer renderer = property.getRenderer();
  renderer.updateUI();
  final PropertyEditor editor = property.getEditor();
  if (editor != null) {
    editor.updateUI();
  }
  final Property[] children = property.getChildren(null);
  for (int i = children.length - 1; i >= 0; i--) {
    updateUI(children[i]);
  }
}
项目:intellij-ce-playground    文件:IntroIntProperty.java   
public IntroIntProperty(final String name,
                        final Method readMethod,
                        final Method writeMethod,
                        final PropertyRenderer<Integer> renderer,
                        final PropertyEditor<Integer> editor,
                        final boolean storeAsClient){
  super(name, readMethod, writeMethod, storeAsClient);
  myRenderer = renderer;
  myEditor = editor;
}
项目:tools-idea    文件:Palette.java   
private void updateUI(final Property property){
  final PropertyRenderer renderer = property.getRenderer();
  renderer.updateUI();
  final PropertyEditor editor = property.getEditor();
  if(editor != null){
    editor.updateUI();
  }
  final Property[] children = property.getChildren(null);
  for (int i = children.length - 1; i >= 0; i--) {
    updateUI(children[i]);
  }
}
项目:tools-idea    文件:IntroIntProperty.java   
public IntroIntProperty(final String name,
                        final Method readMethod,
                        final Method writeMethod,
                        final PropertyRenderer<Integer> renderer,
                        final PropertyEditor<Integer> editor,
                        final boolean storeAsClient){
  super(name, readMethod, writeMethod, storeAsClient);
  myRenderer = renderer;
  myEditor = editor;
}
项目:consulo-ui-designer    文件:Palette.java   
private void updateUI(final Property property){
  final PropertyRenderer renderer = property.getRenderer();
  renderer.updateUI();
  final PropertyEditor editor = property.getEditor();
  if(editor != null){
    editor.updateUI();
  }
  final Property[] children = property.getChildren(null);
  for (int i = children.length - 1; i >= 0; i--) {
    updateUI(children[i]);
  }
}
项目:consulo-ui-designer    文件:IntroIntProperty.java   
public IntroIntProperty(final String name,
                        final Method readMethod,
                        final Method writeMethod,
                        final PropertyRenderer<Integer> renderer,
                        final PropertyEditor<Integer> editor,
                        final boolean storeAsClient){
  super(name, readMethod, writeMethod, storeAsClient);
  myRenderer = renderer;
  myEditor = editor;
}
项目:intellij-ce-playground    文件:BindingProperty.java   
public PropertyEditor<String> getEditor(){
  return myEditor;
}
项目:intellij-ce-playground    文件:IntFieldProperty.java   
public PropertyEditor<Integer> getEditor() {
  return myEditor;
}
项目:intellij-ce-playground    文件:AbstractIntProperty.java   
@Nullable public PropertyEditor<Integer> getEditor() {
  return myEditor;
}
项目:intellij-ce-playground    文件:CustomCreateProperty.java   
public PropertyEditor<Boolean> getEditor() {
  return myEditor;
}
项目:intellij-ce-playground    文件:BorderProperty.java   
public PropertyEditor<BorderType> getEditor() {
  return null;
}
项目:intellij-ce-playground    文件:ButtonGroupProperty.java   
public PropertyEditor<RadButtonGroup> getEditor() {
  return myEditor;
}
项目:intellij-ce-playground    文件:AbstractDimensionProperty.java   
public final PropertyEditor<Dimension> getEditor() {
  return myEditor;
}
项目:intellij-ce-playground    文件:AbstractGridLayoutProperty.java   
public PropertyEditor<Boolean> getEditor(){
  return myEditor;
}
项目:intellij-ce-playground    文件:LayoutManagerProperty.java   
public PropertyEditor<String> getEditor() {
  return myEditor;
}
项目:intellij-ce-playground    文件:IntroPrimitiveTypeProperty.java   
public PropertyEditor<T> getEditor(){
  if (myEditor == null) {
    myEditor = createEditor();
  }
  return myEditor;
}
项目:intellij-ce-playground    文件:IntroPrimitiveTypeProperty.java   
protected PropertyEditor<T> createEditor() {
  return new PrimitiveTypeEditor<T>(myClass);
}
项目:intellij-ce-playground    文件:IntroRectangleProperty.java   
public PropertyEditor<Rectangle> getEditor() {
  return myEditor;
}
项目:intellij-ce-playground    文件:IntroDimensionProperty.java   
public PropertyEditor<Dimension> getEditor() {
  return myEditor;
}
项目:intellij-ce-playground    文件:IntroInsetsProperty.java   
public PropertyEditor<Insets> getEditor() {
  return myEditor;
}
项目:intellij-ce-playground    文件:ClassToBindProperty.java   
public PropertyEditor<String> getEditor(){
  return myEditor;
}
项目:intellij-ce-playground    文件:IntroCharProperty.java   
protected PropertyEditor<Character> createEditor() {
  return new CharEditor();
}
项目:intellij-ce-playground    文件:SizePolicyProperty.java   
public final PropertyEditor<Integer> getEditor(){
  return null;
}
项目:intellij-ce-playground    文件:SizePolicyProperty.java   
public final PropertyEditor<Boolean> getEditor(){
  return myEditor;
}
项目:intellij-ce-playground    文件:ClientPropertyProperty.java   
public PropertyEditor getEditor() {
  return myEditor;
}
项目:intellij-ce-playground    文件:InplaceEditingLayer.java   
public void valueCommitted(final PropertyEditor source, final boolean continueEditing, final boolean closeEditorOnError) {
  finishInplaceEditing();
}
项目:intellij-ce-playground    文件:InplaceEditingLayer.java   
public void editingCanceled(final PropertyEditor source) {
  cancelInplaceEditing();
}
项目:intellij-ce-playground    文件:InplaceEditingLayer.java   
public void preferredSizeChanged(final PropertyEditor source) {
  adjustEditorComponentSize();
}
项目:intellij-ce-playground    文件:RadGridBagLayoutManager.java   
public PropertyEditor<Double> getEditor() {
  if (myEditor == null) {
    myEditor = new PrimitiveTypeEditor<Double>(Double.class);
  }
  return myEditor;
}
项目:intellij-ce-playground    文件:RadCardLayoutManager.java   
public PropertyEditor<String> getEditor() {
  return myEditor;
}
项目:intellij-ce-playground    文件:RadBorderLayoutManager.java   
public PropertyEditor<String> getEditor() {
  if (myEditor == null) {
    myEditor = new BorderSideEditor();
  }
  return myEditor;
}
项目:intellij-ce-playground    文件:RadContainer.java   
public PropertyEditor<StringDescriptor> getEditor() {
  return myEditor;
}
项目:tools-idea    文件:BindingProperty.java   
public PropertyEditor<String> getEditor(){
  return myEditor;
}
项目:tools-idea    文件:IntFieldProperty.java   
public PropertyEditor<Integer> getEditor() {
  return myEditor;
}
项目:tools-idea    文件:AbstractIntProperty.java   
@Nullable public PropertyEditor<Integer> getEditor() {
  return myEditor;
}
项目:tools-idea    文件:CustomCreateProperty.java   
public PropertyEditor<Boolean> getEditor() {
  return myEditor;
}
项目:tools-idea    文件:BorderProperty.java   
public PropertyEditor<BorderType> getEditor() {
  return null;
}