org.nuiton.jaxx.widgets.number.NumberEditor.jcss Maven / Gradle / Ivy
/*
* #%L
* JAXX :: Widgets
* %%
* Copyright (C) 2008 - 2014 CodeLutin
* %%
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser 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 Lesser Public License for more details.
*
* You should have received a copy of the GNU General Lesser Public
* License along with this program. If not, see
* .
* #L%
*/
.enabled {
enabled:{isEnabled()};
}
JButton.digit {
foreground: blue;
font-size: 14;
focusPainted: false;
focusable: false;
}
JButton.operator {
foreground: #009900;
font-size: 14;
focusPainted: false;
focusable: false;
}
JButton.clear {
foreground: red;
font-size: 14;
focusPainted: false;
focusable: false;
}
JButton.digit:mouseover {
font-weight: bold;
}
JButton.clear:mouseover {
font-weight: bold;
}
JButton.operator:mouseover {
font-weight: normal;
}
JToolBar {
floatable:false;
borderPainted:false;
opaque:false;
}
#popupPanel {
border:{BorderFactory.createEmptyBorder(4, 4, 4, 4)};
background:{Color.WHITE};
}
#leftToolbar {
visible:{isShowReset()};
}
#textField {
text:{model.getTextValue()};
}
#rightToolbar {
visible:{isShowPopupButton()};
maximumSize:{new Dimension(24,24)};
}
#reset {
focusable:false;
focusPainted:false;
enabled:{isEnabled() && isShowReset()};
}
#showPopUpButton {
focusable:false;
focusPainted:false;
actionIcon:"numbereditor-calculator";
toolTipText:"numbereditor.action.show.tip";
}
#toggleSignButton {
text:"numbereditor.toggleSign";
enabled:{model.isCanUseSign()};
}
#dotButton {
text:"numbereditor..";
enabled:{model.isCanUseDot()};
}
#clearAllButton {
text:"numbereditor.clearAll";
enabled:{model.isCanClearAll()};
}
#clearOneButton {
text:"numbereditor.clearOne";
enabled:{model.isCanClearAll() && textField.getCaretPosition() > 0};
}
#validateButton {
actionIcon:"numbereditor-validate";
}
#number0Button {
text:"numbereditor.0";
enabled:{model.isCanUseZero()};
}
#number1Button {
text:"numbereditor.1";
}
#number2Button {
text:"numbereditor.2";
}
#number3Button {
text:"numbereditor.3";
}
#number4Button {
text:"numbereditor.4";
}
#number5Button {
text:"numbereditor.5";
}
#number6Button {
text:"numbereditor.6";
}
#number7Button {
text:"numbereditor.7";
}
#number8Button {
text:"numbereditor.8";
}
#number9Button {
text:"numbereditor.9";
}