Package com.fiveht.tick.ui

Source Code of com.fiveht.tick.ui.ToolBar

/*
* Copyright (C) 2012 FiveHT Media Ltd.
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package com.fiveht.tick.ui;

import com.fiveht.tick.ui.toolbar.AddTimerButton;
import com.fiveht.tick.ui.toolbar.ExitButton;
import javax.swing.JToolBar;

/**
*
* @author Nathan Crause
*/
public class ToolBar extends JToolBar {
   
    private View view;

    public ToolBar(View view) {
        super(HORIZONTAL);
       
        this.view = view;
       
        init();
    }

    private void init() {
        add(new ExitButton());
        addSeparator();
        add(new AddTimerButton());
    }

    public View getView() {
        return view;
    }
   
}
TOP

Related Classes of com.fiveht.tick.ui.ToolBar

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.