/*************************************************************************** * * **************************************************************************/ public void lock() { lock("Please wait..."); }
/*************************************************************************** * * **************************************************************************/ public void incrementStep (final String message) { incrementStep(message, 1); }
/******************************************************************************* * * @param baseFont * @param size * @return * *******************************************************************************/ public Font getFont (final double size) { return getFont(component, size); }
@Override @Nonnull public ProfileEvaluationMainPresentation getPresentation() { return builder.getInstance(); } }
/*************************************************************************** * * **************************************************************************/ public void lock (final String message) { lock(createWaitingComponent(message)); }
/*************************************************************************** * * Unlocks the component, taking a snapshot of the new contents and starting * an animated transition. * **************************************************************************/ public void unlock() { if (!isVisible()) { return; } mustBeAWTThread(); doUnlock(); }
@Override public void prepareUnlock() { // fadingPanel.unlock(); fadingPanel.prepareUnlock(); }
/*************************************************************************** * * **************************************************************************/ protected JComponent createWaitingComponent (final String message) { if (waitingComponent == null) { waitingComponent = new WaitingComponent(); } waitingComponent.setText(message); return waitingComponent; }
public static Image scaledImage (Image image, int maxIconSize) { if (image == null) { return image; } ImageIcon icon = (ImageIcon)scaledIcon(new ImageIcon(image), maxIconSize); return icon.getImage(); }
@Override public void unlock() { fadingPanel.unlock(); }
public static JComponent fix (JComponent component, int size) { return fix(new JComponent[]{component}, size)[0]; }
@Override public final Component getListCellRendererComponent (final JList list, final Object value, final int index, final boolean isSelected, final boolean cellHasFocus) { return super.getListCellRendererComponent(list, getDisplayName((T)value), index, isSelected, cellHasFocus); }
@Override public void run() { putValue(NAME, delegate.getValue(NAME)); // Mnemonic etc... are left as they are, since they are a Presentation responsibility } });
@Override public void run() { reference.set(createComponentInstance()); } });
@Nonnull public static <J, X extends J> SwingSafeComponentBuilder<J, X> builderFor (final @Nonnull Class<J> interfaceClass, final @Nonnull Class<X> componentClass) { return new SwingSafeComponentBuilder<J, X>(componentClass, interfaceClass); }
@Nonnull public final synchronized T get() { return builder.getInstance(); } }