Top Inners Fields Constructors Methods
impl.com.calendarfx.view

public Class TimeFieldSkin

extends SkinBase<TimeField>
Class Inheritance
Annotations
@SuppressWarnings:javadoc
Imports
com.calendarfx.view.TimeField, javafx.beans.InvalidationListener, javafx.event.EventHandler, javafx.scene.control.Label, .SkinBase, .TextField, .TextFormatter, javafx.scene.input.KeyEvent, javafx.scene.layout.HBox, javafx.util.StringConverter, java.time.LocalTime

Nested and Inner Type Summary

Modifier and TypeClass and Description
public class
public class

Field Summary

Modifier and TypeField and Description
private final TimeFieldSkin.NumericTextField
private final TimeFieldSkin.NumericTextField
private boolean
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
private void
Inherited from javafx.scene.control.SkinBase:
computeBaselineOffsetcomputeMaxHeightcomputeMaxWidthcomputeMinHeightcomputeMinWidthcomputePrefHeightcomputePrefWidthconsumeMouseEventsdisposeexecuteAccessibleActiongetChildrengetClassCssMetaDatagetCssMetaDatagetNodegetSkinnablelayoutChildrenlayoutInArealayoutInArealayoutInAreapositionInAreapositionInAreapseudoClassStateChangedqueryAccessibleAttributeregisterChangeListenerregisterInvalidationListenerregisterListChangeListenersnappedBottomInsetsnappedLeftInsetsnappedRightInsetsnappedTopInsetsnapPositionsnapPositionXsnapPositionYsnapSizesnapSizeXsnapSizeYsnapSpacesnapSpaceXsnapSpaceYunregisterChangeListenersunregisterInvalidationListenersunregisterListChangeListeners

Field Detail

hourFieldback to summary
private final TimeFieldSkin.NumericTextField hourField
minuteFieldback to summary
private final TimeFieldSkin.NumericTextField minuteField
updatingTextFieldsback to summary
private boolean updatingTextFields
updatingValueback to summary
private boolean updatingValue

Constructor Detail

TimeFieldSkinback to summary
public TimeFieldSkin(TimeField field)

Method Detail

updateFieldsback to summary
private void updateFields()
updateValueback to summary
private void updateValue()
impl.com.calendarfx.view back to summary

public Class TimeFieldSkin.NumericTextField

extends TextField
Class Inheritance

Field Summary

Inherited from javafx.scene.control.TextField:
DEFAULT_PREF_COLUMN_COUNT

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
replaceSelection(String
the replacement string
s
)

Overrides javafx.scene.control.TextInputControl.replaceSelection.

Replaces the selection with the given replacement String.

public void
replaceText(int
The starting index in the range, inclusive. This must be >= 0 and < the end.
start
,
int
The ending index in the range, exclusive. This is one-past the last character to delete (consistent with the String manipulation methods). This must be > the start, and <= the length of the text.
end
,
String
The text that is to replace the range. This must not be null.
s
)

Overrides javafx.scene.control.TextInputControl.replaceText.

Replaces a range of characters with the given text.

Inherited from javafx.scene.control.TextField:
alignmentPropertycreateDefaultSkingetAlignmentgetCharactersgetClassCssMetaDatagetControlCssMetaDatagetOnActiongetPrefColumnCountonActionPropertyprefColumnCountPropertysetAlignmentsetOnActionsetPrefColumnCount

Constructor Detail

NumericTextFieldback to summary
public NumericTextField(int max)

Method Detail

replaceSelectionback to summary
public void replaceSelection(String s)

Overrides javafx.scene.control.TextInputControl.replaceSelection.

Doc from javafx.scene.control.TextInputControl.replaceSelection.

Replaces the selection with the given replacement String. If there is no selection, then the replacement text is simply inserted at the current caret position. If there was a selection, then the selection is cleared and the given replacement text inserted.

Parameters
s:String

the replacement string

Annotations
@Override
replaceTextback to summary
public void replaceText(int start, int end, String s)

Overrides javafx.scene.control.TextInputControl.replaceText.

Doc from javafx.scene.control.TextInputControl.replaceText.

Replaces a range of characters with the given text.

Parameters
start:int

The starting index in the range, inclusive. This must be >= 0 and < the end.

end:int

The ending index in the range, exclusive. This is one-past the last character to delete (consistent with the String manipulation methods). This must be > the start, and <= the length of the text.

s:String

The text that is to replace the range. This must not be null.

Annotations
@Override
impl.com.calendarfx.view back to summary

public Class TimeFieldSkin.RollingHandler

extends Object
implements EventHandler<KeyEvent>
Class Inheritance
All Implemented Interfaces
javafx.event.EventHandler, java.util.EventListener

Field Summary

Modifier and TypeField and Description
private final TextField
private final int

Constructor Summary

AccessConstructor and Description
public
RollingHandler(TextField field, int max)

Method Summary

Modifier and TypeMethod and Description
private void
public void
handle(KeyEvent
the event which occurred
event
)

Implements javafx.event.EventHandler.handle.

Invoked when a specific event of the type for which this handler is registered happens.

private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

fieldback to summary
private final TextField field
maxback to summary
private final int max

Constructor Detail

RollingHandlerback to summary
public RollingHandler(TextField field, int max)

Method Detail

decrementback to summary
private void decrement()
handleback to summary
public void handle(KeyEvent event)

Implements javafx.event.EventHandler.handle.

Doc from javafx.event.EventHandler.handle.

Invoked when a specific event of the type for which this handler is registered happens.

Parameters
event:KeyEvent

the event which occurred

Annotations
@Override
incrementback to summary
private void increment()