/** * Decorates the created view with the apropriate border. * * @param view * the view to descorate. * @param locale * the locale to use. */ protected void decorateWithBorder(IView<JComponent> view, Locale locale) { switch (view.getDescriptor().getBorderType()) { case IViewDescriptor.SIMPLE: view.getPeer().setBorder(BorderFactory.createEtchedBorder()); break; case IViewDescriptor.TITLED: decorateWithTitle(view, locale); break; default: break; } }
/** * Decorates the created view with the appropriate border. * * @param view * the view to decorate. * @param translationProvider * the translation provider. * @param locale * the locale to use. */ @Override protected void decorateWithBorder(IView<JComponent> view, ITranslationProvider translationProvider, Locale locale) { switch (view.getDescriptor().getBorderType()) { case SIMPLE: view.getPeer().setBorder(BorderFactory.createEtchedBorder()); break; case TITLED: case TITLED_ACTIONS: decorateWithTitle(view, translationProvider, locale); break; default: break; } }
/** * {@inheritDoc} */ @Override protected void decorateWithBorder(IView<RComponent> view, ITranslationProvider translationProvider, Locale locale) { view.getPeer().setBorderType(view.getDescriptor().getBorderType().name()); }
/** * {@inheritDoc} */ @Override protected void decorateWithBorder(IView<SComponent> view, ITranslationProvider translationProvider, Locale locale) { switch (view.getDescriptor().getBorderType()) { case SIMPLE: view.getPeer().setBorder(new SEtchedBorder()); break; case TITLED: decorateWithTitle(view, translationProvider, locale); break; default: break; } }
/** * Decorates the created view with the apropriate border. * * @param view * the view to descorate. * @param locale * the locale to use. */ protected void decorateWithBorder(IView<SComponent> view, Locale locale) { switch (view.getDescriptor().getBorderType()) { case IViewDescriptor.SIMPLE: view.getPeer().setBorder(new SEtchedBorder()); break; case IViewDescriptor.TITLED: decorateWithTitle(view, locale); break; default: break; } }
/** * Decorates the created view with the apropriate border. * * @param view * the view to descorate. * @param locale * the locale to use. */ protected void decorateWithBorder(IView<ULCComponent> view, Locale locale) { switch (view.getDescriptor().getBorderType()) { case IViewDescriptor.SIMPLE: view.getPeer().setBorder(BorderFactory.createEtchedBorder()); break; case IViewDescriptor.TITLED: decorateWithTitle(view, locale); break; default: break; } }