コード例 #1
0
ファイル: SynthButtonUI.java プロジェクト: FauxFaux/jdk9-jdk
  /** {@inheritDoc} */
  @Override
  protected void uninstallDefaults(AbstractButton b) {
    SynthContext context = getContext(b, ENABLED);

    style.uninstallDefaults(context);
    style = null;
  }
コード例 #2
0
ファイル: SynthListUI.java プロジェクト: GregBowyer/Hotspot
  /** @inheritDoc */
  @Override
  protected void uninstallDefaults() {
    super.uninstallDefaults();

    SynthContext context = getContext(list, ENABLED);

    style.uninstallDefaults(context);
    context.dispose();
    style = null;
  }
コード例 #3
0
  /** {@inheritDoc} */
  @Override
  protected void uninstallDefaults(JScrollPane c) {
    SynthContext context = getContext(c, ENABLED);

    style.uninstallDefaults(context);

    if (scrollpane.getViewportBorder() instanceof UIResource) {
      scrollpane.setViewportBorder(null);
    }
  }
コード例 #4
0
  /** {@inheritDoc} */
  @Override
  protected void uninstallDefaults() {
    SynthContext context = getContext(getComponent(), ENABLED);

    getComponent().putClientProperty("caretAspectRatio", null);
    getComponent().removeFocusListener(handler);

    style.uninstallDefaults(context);
    style = null;
    super.uninstallDefaults();
  }
コード例 #5
0
  protected void uninstallDefaults() {
    SynthContext context = getContext(getComponent(), ENABLED);
    JComponent c = getComponent();
    c.putClientProperty("caretAspectRatio", null);

    style.uninstallDefaults(context);
    context.dispose();
    style = null;

    Object clientProperty = c.getClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES);
    if (clientProperty == localTrue) {
      getComponent().putClientProperty(JEditorPane.HONOR_DISPLAY_PROPERTIES, Boolean.FALSE);
    }
    super.uninstallDefaults();
  }