當前位置: 首頁>>代碼示例>>Java>>正文


Java PropertyRenderer類代碼示例

本文整理匯總了Java中com.intellij.uiDesigner.propertyInspector.PropertyRenderer的典型用法代碼示例。如果您正苦於以下問題:Java PropertyRenderer類的具體用法?Java PropertyRenderer怎麽用?Java PropertyRenderer使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


PropertyRenderer類屬於com.intellij.uiDesigner.propertyInspector包,在下文中一共展示了PropertyRenderer類的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: updateUI

import com.intellij.uiDesigner.propertyInspector.PropertyRenderer; //導入依賴的package包/類
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]);
  }
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:13,代碼來源:Palette.java

示例2: compute

import com.intellij.uiDesigner.propertyInspector.PropertyRenderer; //導入依賴的package包/類
@NotNull
@Override
protected PropertyRenderer<BorderType> compute() {
  return new LabelPropertyRenderer<BorderType>() {
    protected void customize(@NotNull final BorderType value) {
      setText(value.getName());
    }
  };
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:10,代碼來源:BorderProperty.java

示例3: getRenderer

import com.intellij.uiDesigner.propertyInspector.PropertyRenderer; //導入依賴的package包/類
@NotNull
public PropertyRenderer<StringDescriptor> getRenderer() {
  if (myRenderer == null) {
    myRenderer = new StringRenderer();
  }
  return myRenderer;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:8,代碼來源:BorderProperty.java

示例4: getRenderer

import com.intellij.uiDesigner.propertyInspector.PropertyRenderer; //導入依賴的package包/類
@NotNull
public PropertyRenderer<String[]> getRenderer() {
  if (myRenderer == null) {
    myRenderer = new MyRenderer();
  }
  return myRenderer;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:8,代碼來源:IntroListModelProperty.java

示例5: getRenderer

import com.intellij.uiDesigner.propertyInspector.PropertyRenderer; //導入依賴的package包/類
@NotNull
public PropertyRenderer<Enum> getRenderer() {
  if (myRenderer == null) {
    myRenderer = new LabelPropertyRenderer<Enum>();
  }
  return myRenderer;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:8,代碼來源:IntroEnumProperty.java

示例6: getRenderer

import com.intellij.uiDesigner.propertyInspector.PropertyRenderer; //導入依賴的package包/類
@NotNull
public PropertyRenderer<T> getRenderer(){
  if (myRenderer == null) {
    myRenderer = new LabelPropertyRenderer<T>();
  }
  return myRenderer;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:8,代碼來源:IntroPrimitiveTypeProperty.java

示例7: IntroIntProperty

import com.intellij.uiDesigner.propertyInspector.PropertyRenderer; //導入依賴的package包/類
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;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:11,代碼來源:IntroIntProperty.java

示例8: getRenderer

import com.intellij.uiDesigner.propertyInspector.PropertyRenderer; //導入依賴的package包/類
@NotNull
public PropertyRenderer<Integer> getRenderer() {
  if (myRenderer == null) {
    myRenderer = new LabelPropertyRenderer<Integer>();
  }
  return myRenderer;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:8,代碼來源:IntroIntProperty.java

示例9: getRenderer

import com.intellij.uiDesigner.propertyInspector.PropertyRenderer; //導入依賴的package包/類
@NotNull
public PropertyRenderer<Double> getRenderer() {
  if (myRenderer == null) {
    myRenderer = new LabelPropertyRenderer<Double>();
  }
  return myRenderer;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:8,代碼來源:RadGridBagLayoutManager.java

示例10: getRenderer

import com.intellij.uiDesigner.propertyInspector.PropertyRenderer; //導入依賴的package包/類
@NotNull
public PropertyRenderer<String> getRenderer() {
  if (myRenderer == null) {
    myRenderer = new LabelPropertyRenderer<String>();
  }
  return myRenderer;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:8,代碼來源:RadBorderLayoutManager.java

示例11: updateUI

import com.intellij.uiDesigner.propertyInspector.PropertyRenderer; //導入依賴的package包/類
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]);
  }
}
 
開發者ID:lshain-android-source,項目名稱:tools-idea,代碼行數:13,代碼來源:Palette.java

示例12: getRenderer

import com.intellij.uiDesigner.propertyInspector.PropertyRenderer; //導入依賴的package包/類
@NotNull
public PropertyRenderer<String> getRenderer(){
  return myRenderer;
}
 
開發者ID:jskierbi,項目名稱:intellij-ce-playground,代碼行數:5,代碼來源:BindingProperty.java


注:本文中的com.intellij.uiDesigner.propertyInspector.PropertyRenderer類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。