Examples of EmptyResizableIcon


Examples of org.jvnet.flamingo.common.icon.EmptyResizableIcon

     * @return file menu actionsBand
     */
    private JRibbonBand getActionsBand() {
        JRibbonBand actionsBand = new JRibbonBand(
                I18n.COMMON.getString("AppView.ActionsBand"),
                new EmptyResizableIcon(22));
        actionsBand.setResizePolicies(
                CoreRibbonResizePolicies.getCorePoliciesRestrictive(actionsBand));

        JCommandButton cbtnDashboard = new JCommandButton(
                I18n.CUSTOMERS.getString("Action.Dashboard"),
View Full Code Here

Examples of org.jvnet.flamingo.common.icon.EmptyResizableIcon

     * @return exitBand
     */
    private JRibbonBand getAppExitBand() {
        JRibbonBand appExitBand = new JRibbonBand(
                I18n.COMMON.getString("AppView.AppExitBand"),
                new EmptyResizableIcon(22));
        appExitBand.setResizePolicies(
                CoreRibbonResizePolicies.getCorePoliciesRestrictive(appExitBand));

        JCommandButton cbtnAppExit = new JCommandButton(
                I18n.COMMON.getString("Action.Exit"),
View Full Code Here

Examples of org.jvnet.flamingo.common.icon.EmptyResizableIcon

     * @return viewBand
     */
    private JRibbonBand getViewBand() {
        JRibbonBand viewBand = new JRibbonBand(
                I18n.COMMON.getString("AppView.ViewBand"),
                new EmptyResizableIcon(22));

        JCommandToggleButton cbtnStatusBar = new JCommandToggleButton(
                I18n.COMMON.getString("Action.StatusBar"),
                ViewHelpers.createResizableIcon(new ImageIcon(getClass().getResource(
                                        ViewHelpers.ICONS22 + "statusbar.png"))));
View Full Code Here

Examples of org.jvnet.flamingo.common.icon.EmptyResizableIcon

     * @return extrasBand
     */
    private JRibbonBand getExtrasBand() {
        JRibbonBand extrasBand = new JRibbonBand(
                I18n.COMMON.getString("AppView.ExtrasBand"),
                new EmptyResizableIcon(22));
        extrasBand.setResizePolicies(
                CoreRibbonResizePolicies.getCorePoliciesRestrictive(extrasBand));

        JCommandButton cbtnSettings = new JCommandButton(
                I18n.COMMON.getString("Action.Settings"),
View Full Code Here

Examples of org.jvnet.flamingo.common.icon.EmptyResizableIcon

     * @return helpBand
     */
    private JRibbonBand getHelpBand() {
        JRibbonBand helpBand = new JRibbonBand(
                I18n.COMMON.getString("AppView.HelpBand"),
                new EmptyResizableIcon(22));
        helpBand.setResizePolicies(
                CoreRibbonResizePolicies.getCorePoliciesRestrictive(helpBand));

        JCommandButton cbtnHelp = new JCommandButton(
                I18n.COMMON.getString("AppView.Help"),
View Full Code Here

Examples of org.pushingpixels.flamingo.api.common.icon.EmptyResizableIcon

            menuButtons = new JCommandMenuButton[MENU_BUTTON_COUNT];
            for (int i = 0; i < MENU_BUTTON_COUNT; i++) {
              final int index = i;
              menuButtons[i] = new JCommandMenuButton("popup "
                  + i, new EmptyResizableIcon(16));
              menuButtons[i]
                  .addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(
                        ActionEvent e) {
View Full Code Here

Examples of org.pushingpixels.flamingo.api.common.icon.EmptyResizableIcon

            menuButtons = new JCommandMenuButton[MENU_BUTTON_COUNT];
            for (int i = 0; i < MENU_BUTTON_COUNT; i++) {
              final int index = i;
              menuButtons[i] = new JCommandMenuButton("popup "
                  + i, new EmptyResizableIcon(16));
              menuButtons[i]
                  .addActionListener(new ActionListener() {
                    @Override
                    public void actionPerformed(
                        ActionEvent e) {
View Full Code Here

Examples of org.pushingpixels.flamingo.api.common.icon.EmptyResizableIcon

  /**
   * Creates a new application menu button.
   */
  public JRibbonApplicationMenuButton(JRibbon ribbon) {
    super("", new EmptyResizableIcon(16));
    this.setCommandButtonKind(CommandButtonKind.POPUP_ONLY);
    this.setDisplayState(APP_MENU_BUTTON_STATE);
    this.ribbon = ribbon;
  }
View Full Code Here

Examples of org.pushingpixels.flamingo.api.common.icon.EmptyResizableIcon

        }
      };
      worker.execute();
    }

    this.dummy = new JCommandButton("Dummy", new EmptyResizableIcon(16));
    this.dummy.setDisplayState(CommandButtonDisplayState.MEDIUM);
    this.dummy
        .setCommandButtonKind(CommandButtonKind.ACTION_AND_POPUP_MAIN_ACTION);
  }
View Full Code Here

Examples of org.pushingpixels.flamingo.api.common.icon.EmptyResizableIcon

      int initialSize = currDimension;
      if (initialSize < 0)
        initialSize = currState.getPreferredIconSize();
      JCommandButton button = new JCommandButton(name,
          new EmptyResizableIcon(initialSize));
      button.setHorizontalAlignment(SwingUtilities.LEFT);
      button.setDisplayState(this.currState);
      if (this.currState == CommandButtonDisplayState.FIT_TO_ICON)
        button.updateCustomDimension(currDimension);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.