BackgroundElement(SkinSpecPanel skinPanel, List<String> imgPath, List<Boolean> isTiled) { super(skinPanel, Messages.getString("SkinEditor.Background"), //$NON-NLS-1$ imgPath, isTiled, true); }
/** * set this <code>GridBagConstraints</code> so that the corresponding * Component will fill horizontally and vertically. * @return <code>this</code> */ public GBC fill() { return fill(BOTH); }
void butClose_actionPerformed() { clear(); setVisible(false); bv.drawRuler(start, end, startColor, endColor); }
/** * Returns true if this option has tooltip text. * * @return */ public boolean hasTooltipText() { return Messages.keyExists("AdvancedOptions." + option + ".tooltip"); }
/** * @return a <code>GridBagConstraints</code> that will have a component * fill a line * @see GridBagConstraints#REMAINDER */ public static GBC eol() { GBC c = std(); c.gridwidth = REMAINDER; return c; }
/** * @return a standard <code>GridBagConstraints</code>, * anchored to <code>GridBagConstraints.WEST</code> */ public static GBC std() { return new GBC(); }
public static String doPSRCheck(MovePath md) { return (String) doPSRCheck(md, true); }
protected List<TargetRoll> getPSRList(MovePath path) { return SharedUtility.getPSRList(path); }
@Override public String getColumnName(int column) { switch (column) { case (COL_ENTITY): return Messages.getString("RandomArmyDialog.colUnit"); case (COL_MOVE): return Messages.getString("RandomArmyDialog.colMove"); case (COL_BV): return Messages.getString("RandomArmyDialog.colBV"); } return "??"; }
/** * Returns the tooltip text for this option. * * @return */ public String getTooltipText() { return Messages.getString("AdvancedOptions." + option + ".tooltip"); }
@Override public String getColumnName(int column) { switch (column) { case (COL_WEIGHT): return Messages.getString("RandomArmyDialog.colWeight"); case (COL_UNIT): return Messages.getString("RandomArmyDialog.colUnit"); case (COL_BV): return Messages.getString("RandomArmyDialog.colBV"); } return "??"; }
/** * Constructor for this dialog. * * @param parent The parent {@link JFrame} invoking this dialog. * @param mapSettingsObserver The {@link IMapSettingsObserver} objects to which the map setting will be passed if * this is a local only game. * @param client The {@link Client} that will send the map settings to the server if this is a * server-based game. * @param mapSettings The {@link MapSettings} describing the map to be generated. */ public RandomMapDialog(JFrame parent, IMapSettingsObserver mapSettingsObserver, Client client, MapSettings mapSettings) { this(parent, mapSettingsObserver, client, mapSettings, Messages.getString("RandomMapDialog.title")); }
@Override public String getColumnName(int column) { switch (column) { case (COL_PILOT): return Messages.getString("ChatLounge.colPilot"); case (COL_UNIT): return Messages.getString("ChatLounge.colUnit"); case (COL_PLAYER): return Messages.getString("ChatLounge.colPlayer"); case (COL_BV): return Messages.getString("ChatLounge.colBV"); } return "??"; }
Status(Color c, String s) { color = c; status = Messages.getString("BoardView1."+s); small = false; if (color.equals(Color.RED)) criticalStatus = true; }
public static String getLevelDisplayableName(int level) { if ((level >= 0) && (level < L_SIZE)) { return Messages.getString("RandomSkillDialog." + levelNames[level]); } throw new IllegalArgumentException("Unknown level"); }
public synchronized void setDeployCommandEnabled(int nbr) { deployMinesCommand.setText(Messages.getString( "CommonMenuBar.Command", new Object[]{nbr})); //$NON-NLS-1$ // Cannot ever deploy command mines... deployMinesCommand.setEnabled(false); }