Tabnine Logo
DateChooserPanel.refreshButtons
Code IndexAdd Tabnine to your IDE (free)

How to use
refreshButtons
method
in
org.jfree.ui.DateChooserPanel

Best Java code snippets using org.jfree.ui.DateChooserPanel.refreshButtons (Showing top 15 results out of 315)

origin: jfree/jcommon

/**
 * Sets the date chosen in the panel.
 *
 * @param theDate the new date.
 */
public void setDate(final Date theDate) {
  this.chosenDate.setTime(theDate);
  this.monthSelector.setSelectedIndex(this.chosenDate.get(
      Calendar.MONTH));
  refreshYearSelector();
  refreshButtons();
}
origin: org.jfree/jcommon

/**
 * Sets the date chosen in the panel.
 *
 * @param theDate the new date.
 */
public void setDate(final Date theDate) {
  this.chosenDate.setTime(theDate);
  this.monthSelector.setSelectedIndex(this.chosenDate.get(
      Calendar.MONTH));
  refreshYearSelector();
  refreshButtons();
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Sets the date chosen in the panel.
 *
 * @param theDate the new date.
 */
public void setDate(final Date theDate) {
  this.chosenDate.setTime(theDate);
  this.monthSelector.setSelectedIndex(this.chosenDate.get(
      Calendar.MONTH));
  refreshYearSelector();
  refreshButtons();
}
origin: jfree/jcommon

/**
 * Defines the color for the buttons representing the current month.
 *
 * @param chosenMonthButtonColor the color for the current month.
 */
public void setChosenMonthButtonColor(final Color chosenMonthButtonColor) {
  if (chosenMonthButtonColor == null) {
    throw new NullPointerException("UIColor must not be null.");
  }
  final Color oldValue = this.chosenMonthButtonColor;
  this.chosenMonthButtonColor = chosenMonthButtonColor;
  refreshButtons();
  firePropertyChange("chosenMonthButtonColor", oldValue, 
      chosenMonthButtonColor);
}
origin: org.jfree/jcommon

/**
 * Redefines the color for the buttons representing the other months.
 *
 * @param chosenOtherButtonColor a color.
 */
public void setChosenOtherButtonColor(final Color chosenOtherButtonColor) {
  if (chosenOtherButtonColor == null) {
    throw new NullPointerException("UIColor must not be null.");
  }
  final Color oldValue = this.chosenOtherButtonColor;
  this.chosenOtherButtonColor = chosenOtherButtonColor;
  refreshButtons();
  firePropertyChange("chosenOtherButtonColor", oldValue, 
      chosenOtherButtonColor);
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Defines the color for the buttons representing the current month.
 *
 * @param chosenMonthButtonColor the color for the current month.
 */
public void setChosenMonthButtonColor(final Color chosenMonthButtonColor) {
  if (chosenMonthButtonColor == null) {
    throw new NullPointerException("UIColor must not be null.");
  }
  final Color oldValue = this.chosenMonthButtonColor;
  this.chosenMonthButtonColor = chosenMonthButtonColor;
  refreshButtons();
  firePropertyChange("chosenMonthButtonColor", oldValue, 
      chosenMonthButtonColor);
}
origin: jfree/jcommon

/**
 * Redefines the color for the buttons representing the other months.
 *
 * @param chosenOtherButtonColor a color.
 */
public void setChosenOtherButtonColor(final Color chosenOtherButtonColor) {
  if (chosenOtherButtonColor == null) {
    throw new NullPointerException("UIColor must not be null.");
  }
  final Color oldValue = this.chosenOtherButtonColor;
  this.chosenOtherButtonColor = chosenOtherButtonColor;
  refreshButtons();
  firePropertyChange("chosenOtherButtonColor", oldValue, 
      chosenOtherButtonColor);
}
origin: org.jfree/jcommon

/**
 * Redefines the color for the currently selected date.
 *
 * @param chosenDateButtonColor the new color
 */
public void setChosenDateButtonColor(final Color chosenDateButtonColor) {
  if (chosenDateButtonColor == null) {
    throw new NullPointerException("UIColor must not be null.");
  }
  final Color oldValue = this.chosenDateButtonColor;
  this.chosenDateButtonColor = chosenDateButtonColor;
  refreshButtons();
  firePropertyChange("chosenDateButtonColor", oldValue, 
      chosenDateButtonColor);
}
origin: jfree/jcommon

/**
 * Redefines the color for the currently selected date.
 *
 * @param chosenDateButtonColor the new color
 */
public void setChosenDateButtonColor(final Color chosenDateButtonColor) {
  if (chosenDateButtonColor == null) {
    throw new NullPointerException("UIColor must not be null.");
  }
  final Color oldValue = this.chosenDateButtonColor;
  this.chosenDateButtonColor = chosenDateButtonColor;
  refreshButtons();
  firePropertyChange("chosenDateButtonColor", oldValue, 
      chosenDateButtonColor);
}
origin: org.jfree/jcommon

/**
 * Defines the color for the buttons representing the current month.
 *
 * @param chosenMonthButtonColor the color for the current month.
 */
public void setChosenMonthButtonColor(final Color chosenMonthButtonColor) {
  if (chosenMonthButtonColor == null) {
    throw new NullPointerException("UIColor must not be null.");
  }
  final Color oldValue = this.chosenMonthButtonColor;
  this.chosenMonthButtonColor = chosenMonthButtonColor;
  refreshButtons();
  firePropertyChange("chosenMonthButtonColor", oldValue, 
      chosenMonthButtonColor);
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Redefines the color for the currently selected date.
 *
 * @param chosenDateButtonColor the new color
 */
public void setChosenDateButtonColor(final Color chosenDateButtonColor) {
  if (chosenDateButtonColor == null) {
    throw new NullPointerException("UIColor must not be null.");
  }
  final Color oldValue = this.chosenDateButtonColor;
  this.chosenDateButtonColor = chosenDateButtonColor;
  refreshButtons();
  firePropertyChange("chosenDateButtonColor", oldValue, 
      chosenDateButtonColor);
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Redefines the color for the buttons representing the other months.
 *
 * @param chosenOtherButtonColor a color.
 */
public void setChosenOtherButtonColor(final Color chosenOtherButtonColor) {
  if (chosenOtherButtonColor == null) {
    throw new NullPointerException("UIColor must not be null.");
  }
  final Color oldValue = this.chosenOtherButtonColor;
  this.chosenOtherButtonColor = chosenOtherButtonColor;
  refreshButtons();
  firePropertyChange("chosenOtherButtonColor", oldValue, 
      chosenOtherButtonColor);
}
origin: jfree/jcommon

this.chosenDate.set(Calendar.DAY_OF_MONTH, Math.min(dayOfMonth, 
    maxDayOfMonth));
refreshButtons();
    maxDayOfMonth));
  refreshYearSelector();
  refreshButtons();
origin: org.jfree/jcommon

this.chosenDate.set(Calendar.DAY_OF_MONTH, Math.min(dayOfMonth, 
    maxDayOfMonth));
refreshButtons();
    maxDayOfMonth));
  refreshYearSelector();
  refreshButtons();
origin: org.jfree/com.springsource.org.jfree

this.chosenDate.set(Calendar.DAY_OF_MONTH, Math.min(dayOfMonth, 
    maxDayOfMonth));
refreshButtons();
    maxDayOfMonth));
  refreshYearSelector();
  refreshButtons();
org.jfree.uiDateChooserPanelrefreshButtons

Javadoc

Update the button labels and colors to reflect date selection.

Popular methods of DateChooserPanel

  • add
  • constructControlPanel
    Returns a panel that appears at the bottom of the calendar panel - contains a button for selecting t
  • constructSelectionPanel
    Constructs a panel containing two JComboBoxes (for the month and year) and a button (to reset the da
  • equalDates
    Returns true if the two dates are equal (time of day is ignored).
  • firePropertyChange
  • getButtonColor
    Returns the button color according to the specified date.
  • getCalendarPanel
    Returns a panel of buttons, each button representing a day in the month. This is a sub-component of
  • getFirstDayOfWeek
    Returns the first day of the week (controls the labels in the date panel).
  • getFirstVisibleDate
    Returns the first date that is visible in the grid. This should always be in the month preceding the
  • getYears
    Returns a vector of years preceding and following the specified year. The number of years preceding
  • refreshYearSelector
    Changes the contents of the year selection JComboBox to reflect the chosen date and the year range.
  • setDate
    Sets the date chosen in the panel.
  • refreshYearSelector,
  • setDate,
  • <init>

Popular in Java

  • Updating database using SQL prepared statement
  • onRequestPermissionsResult (Fragment)
  • runOnUiThread (Activity)
  • getSupportFragmentManager (FragmentActivity)
  • Menu (java.awt)
  • Runnable (java.lang)
    Represents a command that can be executed. Often used to run code in a different Thread.
  • Charset (java.nio.charset)
    A charset is a named mapping between Unicode characters and byte sequences. Every Charset can decode
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Stream (java.util.stream)
    A sequence of elements supporting sequential and parallel aggregate operations. The following exampl
  • JTextField (javax.swing)
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now