Update of /cvsroot/squirrel-sql/mavenize/thirdparty-non-maven/ilf-gpl-1.6.1/src/main/java/net/infonode/gui/laf/ui
In directory sfp-cvsdas-3.v30.ch3.sourceforge.com:/tmp/cvs-serv4128/thirdparty-non-maven/ilf-gpl-1.6.1/src/main/java/net/infonode/gui/laf/ui
Added Files:
SlimSplitPaneUI.java SlimComboBoxUI.java
SlimSplitPaneDivider.java SlimMenuItemUI.java
SlimInternalFrameUI.java SlimInternalFrameTitlePane.java
Log Message:
pom and Source for thirdparty dependency. Maven central requires a valid source code repository for artifacts that it hosts. This project has none, so we host it here for the time being.
--- NEW FILE: SlimMenuItemUI.java ---
/*
* Copyright (C) 2004 NNL Technology AB
* Visit www.infonode.net for information about InfoNode(R)
* products and how to contact NNL Technology AB.
*
* 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 2
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
*/
// $Id: SlimMenuItemUI.java,v 1.1 2010/01/26 21:09:41 manningr Exp $
package net.infonode.gui.laf.ui;
import javax.swing.*;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.basic.BasicMenuItemUI;
/**
* @author $Author: manningr $
* @version $Revision: 1.1 $
*/
public class SlimMenuItemUI extends BasicMenuItemUI {
public static ComponentUI createUI(JComponent b) {
return new SlimMenuItemUI();
}
protected void installDefaults() {
super.installDefaults();
}
}
--- NEW FILE: SlimInternalFrameTitlePane.java ---
/*
* Copyright (C) 2004 NNL Technology AB
* Visit www.infonode.net for information about InfoNode(R)
* products and how to contact NNL Technology AB.
*
* 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 2
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
*/
// $Id: SlimInternalFrameTitlePane.java,v 1.1 2010/01/26 21:09:41 manningr Exp $
package net.infonode.gui.laf.ui;
import net.infonode.gui.ButtonFactory;
import net.infonode.gui.border.EdgeBorder;
import javax.swing.*;
import javax.swing.plaf.basic.BasicInternalFrameTitlePane;
/**
* @author $Author: manningr $
* @version $Revision: 1.1 $
*/
public class SlimInternalFrameTitlePane extends BasicInternalFrameTitlePane {
public SlimInternalFrameTitlePane(JInternalFrame f) {
super(f);
setBorder(new EdgeBorder(UIManager.getColor("controlDkShadow"), false, true, false, false));
}
protected void createButtons() {
iconButton = ButtonFactory.createFlatHighlightButton(iconIcon,
UIManager.getString("InternalFrame.iconButtonToolTip"),
0,
iconifyAction);
iconButton.setFocusable(false);
closeButton = ButtonFactory.createFlatHighlightButton(closeIcon,
UIManager.getString("InternalFrame.closeButtonToolTip"),
0,
closeAction);
closeButton.setFocusable(false);
maxButton = ButtonFactory.createFlatHighlightButton(maxIcon,
UIManager.getString("InternalFrame.maxButtonToolTip"),
0,
maximizeAction);
maxButton.setFocusable(false);
}
}
--- NEW FILE: SlimComboBoxUI.java ---
/*
* Copyright (C) 2004 NNL Technology AB
* Visit www.infonode.net for information about InfoNode(R)
* products and how to contact NNL Technology AB.
*
* 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 2
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
*/
// $Id: SlimComboBoxUI.java,v 1.1 2010/01/26 21:09:41 manningr Exp $
package net.infonode.gui.laf.ui;
import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.border.CompoundBorder;
import javax.swing.border.EmptyBorder;
import javax.swing.border.LineBorder;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.basic.BasicComboBoxRenderer;
import javax.swing.plaf.metal.MetalComboBoxUI;
import java.awt.*;
/**
* @author $Author: manningr $
* @version $Revision: 1.1 $
*/
public class SlimComboBoxUI extends MetalComboBoxUI {
public static Border FOCUS_BORDER = new CompoundBorder(new LineBorder(Color.BLACK), new EmptyBorder(0, 3, 0, 3));
public static Border NORMAL_BORDER = new EmptyBorder(1, 4, 1, 4);
public static ComponentUI createUI(JComponent b) {
return new SlimComboBoxUI();
}
protected ListCellRenderer createRenderer() {
return new BasicComboBoxRenderer() {
public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
boolean cellHasFocus) {
JLabel label = (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
label.setBorder(index == -1 ? noFocusBorder : cellHasFocus ? FOCUS_BORDER : NORMAL_BORDER);
return label;
}
};
}
}
--- NEW FILE: SlimInternalFrameUI.java ---
/*
* Copyright (C) 2004 NNL Technology AB
* Visit www.infonode.net for information about InfoNode(R)
* products and how to contact NNL Technology AB.
*
* 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 2
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
*/
// $Id: SlimInternalFrameUI.java,v 1.1 2010/01/26 21:09:41 manningr Exp $
package net.infonode.gui.laf.ui;
import javax.swing.*;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.basic.BasicInternalFrameUI;
/**
* @author $Author: manningr $
* @version $Revision: 1.1 $
*/
public class SlimInternalFrameUI extends BasicInternalFrameUI {
public static ComponentUI createUI(JComponent b) {
return new SlimInternalFrameUI((JInternalFrame) b);
}
public SlimInternalFrameUI(JInternalFrame b) {
super(b);
}
protected JComponent createNorthPane(JInternalFrame w) {
return new SlimInternalFrameTitlePane(w);
}
}
--- NEW FILE: SlimSplitPaneDivider.java ---
/*
* Copyright (C) 2004 NNL Technology AB
* Visit www.infonode.net for information about InfoNode(R)
* products and how to contact NNL Technology AB.
*
* 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 2
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
*/
// $Id: SlimSplitPaneDivider.java,v 1.1 2010/01/26 21:09:41 manningr Exp $
package net.infonode.gui.laf.ui;
import net.infonode.gui.icon.button.ArrowIcon;
import net.infonode.util.Direction;
import javax.swing.*;
import javax.swing.plaf.basic.BasicSplitPaneDivider;
import javax.swing.plaf.basic.BasicSplitPaneUI;
import java.awt.*;
/**
* @author $Author: manningr $
* @version $Revision: 1.1 $
*/
public class SlimSplitPaneDivider extends BasicSplitPaneDivider {
public SlimSplitPaneDivider(BasicSplitPaneUI ui) {
super(ui);
}
protected JButton createLeftOneTouchButton() {
ArrowIcon icon = new ArrowIcon(8, Direction.LEFT);
icon.setShadowEnabled(false);
JButton button = new JButton(icon);
button.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
button.setFocusPainted(false);
button.setBorderPainted(false);
button.setRequestFocusEnabled(false);
return button;
}
protected JButton createRightOneTouchButton() {
ArrowIcon icon = new ArrowIcon(8, Direction.RIGHT);
icon.setShadowEnabled(false);
JButton button = new JButton(icon);
button.setCursor(Cursor.getPredefinedCursor(Cursor.DEFAULT_CURSOR));
button.setFocusPainted(false);
button.setBorderPainted(false);
button.setRequestFocusEnabled(false);
return button;
}
}
--- NEW FILE: SlimSplitPaneUI.java ---
/*
* Copyright (C) 2004 NNL Technology AB
* Visit www.infonode.net for information about InfoNode(R)
* products and how to contact NNL Technology AB.
*
* 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 2
* 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, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston,
* MA 02111-1307, USA.
*/
// $Id: SlimSplitPaneUI.java,v 1.1 2010/01/26 21:09:41 manningr Exp $
package net.infonode.gui.laf.ui;
import javax.swing.*;
import javax.swing.plaf.ComponentUI;
import javax.swing.plaf.basic.BasicSplitPaneDivider;
import javax.swing.plaf.basic.BasicSplitPaneUI;
/**
* @author $Author: manningr $
* @version $Revision: 1.1 $
*/
public class SlimSplitPaneUI extends BasicSplitPaneUI {
public static ComponentUI createUI(JComponent c) {
return new SlimSplitPaneUI();
}
public BasicSplitPaneDivider createDefaultDivider() {
return new SlimSplitPaneDivider(this);
}
}
|