/** * Maps {@code JProgressBar.getUI()} through queue */ public ProgressBarUI getUI() { return (runMapping(new MapAction<ProgressBarUI>("getUI") { @Override public ProgressBarUI map() { return ((JProgressBar) getSource()).getUI(); } })); }
/** * Maps {@code JProgressBar.setUI(ProgressBarUI)} through queue */ public void setUI(final ProgressBarUI progressBarUI) { runMapping(new MapVoidAction("setUI") { @Override public void map() { ((JProgressBar) getSource()).setUI(progressBarUI); } }); }
public void testSetGetUpdateUI() { assertEquals("ProgressBarUI", progressBar.getUIClassID()); ProgressBarUI defaultUI = progressBar.getUI(); assertNotNull(defaultUI); ProgressBarUI ui = new ProgressBarUI() { }; progressBar.setUI(ui); assertEquals(ui, progressBar.getUI()); progressBar.updateUI(); assertNotSame(ui, progressBar.getUI()); }
public SmoothProgressBar(int min, int max, ProgressBarUI ui) { super(min, max, ui); }
public CustomUIProgressBar(int min, int max, ProgressBarUI ui) { super(min, max); this.ui = ui; setUI(ui); }
@Override public void setUI(javax.swing.plaf.ProgressBarUI ui) { // Always prefer our own ui if we have one super.setUI(this.ui != null ? this.ui : ui); }
@Override public void setUI(ProgressBarUI ui) { ui = new DarculaProgressBarUI(); super.setUI(ui); setPreferredSize(new Dimension(getPreferredSize().width, JBUI.scale(NATIVE_LAF_HEIGHT))); }
public ProgressBarUI getUI() { AndroidClassUtil.callEmptyMethod(); return (ProgressBarUI) null; }
public void setUI(ProgressBarUI ui) { AndroidClassUtil.callEmptyMethod(); }
/** * Sets this <code>JProgressBar</code>'s UI delegate to the default * (obtained from the {@link UIManager}) for the current look and feel. */ public void updateUI() { setUI((ProgressBarUI) UIManager.getUI(this)); }
public ProgressBarUI getUI() { return (ProgressBarUI)ui; }
public void setUI(final ProgressBarUI ui) { super.setUI(ui); }
public void updateUI() { setUI((ProgressBarUI)UIManager.getUI(this)); }
/** * Returns the look-and-feel object that renders this component. * * @return the <code>ProgressBarUI</code> object that renders this component */ public ProgressBarUI getUI() { return (ProgressBarUI)ui; }
/** * Sets the look-and-feel object that renders this component. * * @param ui a <code>ProgressBarUI</code> object * @see UIDefaults#getUI * @beaninfo * bound: true * hidden: true * attribute: visualUpdate true * description: The UI object that implements the Component's LookAndFeel. */ public void setUI(ProgressBarUI ui) { super.setUI(ui); }
/** * Resets the UI property to a value from the current look and feel. * * @see JComponent#updateUI */ public void updateUI() { setUI((ProgressBarUI)UIManager.getUI(this)); }
/** * Sets the look-and-feel object that renders this component. * * @param ui a <code>ProgressBarUI</code> object * @see UIDefaults#getUI */ @BeanProperty(hidden = true, visualUpdate = true, description = "The UI object that implements the Component's LookAndFeel.") public void setUI(ProgressBarUI ui) { super.setUI(ui); }