use of org.jivesoftware.spark.component.RolloverButton in project Spark by igniterealtime.
the class ButtonFactory method createRegisterButton.
public RolloverButton createRegisterButton() {
RolloverButton register = new RolloverButton(SparkRes.getImageIcon(SparkRes.PEOPLE_IMAGE));
register.setToolTipText(Res.getString("button.register").replace("&", ""));
return register;
}
use of org.jivesoftware.spark.component.RolloverButton in project Spark by igniterealtime.
the class ButtonFactory method createEmoticonButton.
public RolloverButton createEmoticonButton() {
final EmoticonManager emoticonManager = EmoticonManager.getInstance();
final String activeEmoticonSetName = emoticonManager.getActiveEmoticonSetName();
final Emoticon smileEmoticon = emoticonManager.getEmoticon(activeEmoticonSetName, ":)");
Emoticon firstEmoticon = (smileEmoticon == null) ? firstEmoticon = emoticonManager.getFirstEmotion(activeEmoticonSetName) : smileEmoticon;
URL emotionURL = emoticonManager.getEmoticonURL(firstEmoticon);
ImageIcon icon = new ImageIcon(emotionURL);
firstEmoticon = null;
return new RolloverButton(icon);
}
use of org.jivesoftware.spark.component.RolloverButton in project Spark by igniterealtime.
the class ButtonFactory method createTemaButton.
public RolloverButton createTemaButton() {
RolloverButton thema = new RolloverButton(SparkRes.getImageIcon(SparkRes.TYPING_TRAY));
thema.setToolTipText(Res.getString("menuitem.change.subject"));
return thema;
}
use of org.jivesoftware.spark.component.RolloverButton in project Spark by igniterealtime.
the class ChatRoom method enableToolbar.
/**
* Enable the ChatRoom toolbar.
*/
public void enableToolbar() {
final int count = editorBarLeft.getComponentCount();
for (int i = 0; i < count; i++) {
final Object o = editorBarLeft.getComponent(i);
if (o instanceof RolloverButton) {
final RolloverButton rb = (RolloverButton) o;
rb.setEnabled(true);
}
}
}
use of org.jivesoftware.spark.component.RolloverButton in project Spark by igniterealtime.
the class CoBrowser method tabSelected.
public void tabSelected() {
goButton = new RolloverButton(FastpathRes.getImageIcon(FastpathRes.PUSH_URL_16x16));
pushCurrentPageButton = new RolloverButton(FastpathRes.getImageIcon(FastpathRes.DOWNLOAD_16x16));
followMeButton = new JCheckBox(FpRes.getString("checkbox.allow.user.to.follow"), false);
followMeButton.setToolTipText(GraphicUtils.createToolTip(PUBLIC_TOOLTIP));
followMeButton.addActionListener(this);
final JPanel mainPanel = new JPanel();
browser = BrowserFactory.getBrowser();
browser.addBrowserListener(this);
mainPanel.setLayout(new BorderLayout());
mainPanel.add(browser, BorderLayout.CENTER);
urlField = new JTextField();
setLayout(new GridBagLayout());
backButton = new RolloverButton(FastpathRes.getImageIcon(FastpathRes.SMALL_PIN_BLUE));
backButton.setText(FpRes.getString("back"));
backButton.setToolTipText(GraphicUtils.createToolTip(FpRes.getString("tooltip.back.one.page")));
goButton.setToolTipText(GraphicUtils.createToolTip(FpRes.getString("tooltip.push.url")));
goButton.setText(FpRes.getString("go"));
pushCurrentPageButton.setToolTipText(GraphicUtils.createToolTip(FpRes.getString("tooltip.push.current.page")));
pushCurrentPageButton.setText(FpRes.getString("button.start.cobrowsing.session"));
load(getStartLocation());
buildUI();
add(mainPanel, new GridBagConstraints(0, 2, 1, 1, 1.0, 1.0, GridBagConstraints.WEST, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
urlField.addKeyListener(new KeyListener() {
public void keyPressed(KeyEvent e) {
if (e.getKeyChar() == KeyEvent.VK_ENTER) {
showSpecifiedPage();
}
}
public void keyReleased(KeyEvent e) {
}
public void keyTyped(KeyEvent e) {
}
});
followMeButton.setOpaque(false);
}
Aggregations