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

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

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

origin: jfree/jcommon

/**
 * Returns the first date that is visible in the grid.  This should always 
 * be in the month preceding the month of the selected date.
 *
 * @return the date.
 */
private Calendar getFirstVisibleDate() {
  final Calendar c = Calendar.getInstance();
  c.set(this.chosenDate.get(Calendar.YEAR), this.chosenDate.get(
      Calendar.MONTH), 1);
  c.add(Calendar.DATE, -1);
  while (c.get(Calendar.DAY_OF_WEEK) != getFirstDayOfWeek()) {
    c.add(Calendar.DATE, -1);
  }
  return c;
}
origin: org.jfree/jcommon

/**
 * Returns the first date that is visible in the grid.  This should always 
 * be in the month preceding the month of the selected date.
 *
 * @return the date.
 */
private Calendar getFirstVisibleDate() {
  final Calendar c = Calendar.getInstance();
  c.set(this.chosenDate.get(Calendar.YEAR), this.chosenDate.get(
      Calendar.MONTH), 1);
  c.add(Calendar.DATE, -1);
  while (c.get(Calendar.DAY_OF_WEEK) != getFirstDayOfWeek()) {
    c.add(Calendar.DATE, -1);
  }
  return c;
}
origin: org.jfree/com.springsource.org.jfree

/**
 * Returns the first date that is visible in the grid.  This should always 
 * be in the month preceding the month of the selected date.
 *
 * @return the date.
 */
private Calendar getFirstVisibleDate() {
  final Calendar c = Calendar.getInstance();
  c.set(this.chosenDate.get(Calendar.YEAR), this.chosenDate.get(
      Calendar.MONTH), 1);
  c.add(Calendar.DATE, -1);
  while (c.get(Calendar.DAY_OF_WEEK) != getFirstDayOfWeek()) {
    c.add(Calendar.DATE, -1);
  }
  return c;
}
org.jfree.uiDateChooserPanelgetFirstDayOfWeek

Javadoc

Returns the first day of the week (controls the labels in the date panel).

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
  • 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
  • refreshButtons
    Update the button labels and colors to reflect date selection.
  • 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

  • Making http requests using okhttp
  • scheduleAtFixedRate (Timer)
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • JFileChooser (javax.swing)
  • JTextField (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Best IntelliJ plugins
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