public class WebSyntaxScrollPane extends org.fife.ui.rtextarea.RTextScrollPane implements Styleable, Skinnable, Paintable, ShapeProvider, MarginSupport, PaddingSupport, SizeMethods<WebSyntaxScrollPane>, com.alee.managers.language.LanguageContainerMethods
WebSyntaxArea component.javax.swing.JScrollPane.AccessibleJScrollPane, javax.swing.JScrollPane.ScrollBarjavax.swing.JComponent.AccessibleJComponentcolumnHeader, horizontalScrollBar, horizontalScrollBarPolicy, lowerLeft, lowerRight, rowHeader, upperLeft, upperRight, verticalScrollBar, verticalScrollBarPolicy, viewportlistenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWaccessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTEMPTYEMPTYUNDEFINEDCOLUMN_HEADER, HORIZONTAL_SCROLLBAR, HORIZONTAL_SCROLLBAR_ALWAYS, HORIZONTAL_SCROLLBAR_AS_NEEDED, HORIZONTAL_SCROLLBAR_NEVER, HORIZONTAL_SCROLLBAR_POLICY, LOWER_LEADING_CORNER, LOWER_LEFT_CORNER, LOWER_RIGHT_CORNER, LOWER_TRAILING_CORNER, ROW_HEADER, UPPER_LEADING_CORNER, UPPER_LEFT_CORNER, UPPER_RIGHT_CORNER, UPPER_TRAILING_CORNER, VERTICAL_SCROLLBAR, VERTICAL_SCROLLBAR_ALWAYS, VERTICAL_SCROLLBAR_AS_NEEDED, VERTICAL_SCROLLBAR_NEVER, VERTICAL_SCROLLBAR_POLICY, VIEWPORT| Constructor and Description |
|---|
WebSyntaxScrollPane()
Constructs new empty syntax scrollpane.
|
WebSyntaxScrollPane(StyleId id)
Constructs new empty syntax scrollpane.
|
WebSyntaxScrollPane(StyleId id,
WebSyntaxArea syntaxArea)
Constructs new syntax scrollpane with the specified syntax area inside.
|
WebSyntaxScrollPane(StyleId id,
WebSyntaxArea syntaxArea,
boolean lineNumbers)
Constructs new syntax scrollpane with the specified syntax area inside.
|
WebSyntaxScrollPane(StyleId id,
WebSyntaxArea syntaxArea,
boolean lineNumbers,
java.awt.Color lineNumberColor)
Constructs new syntax scrollpane with the specified syntax area inside.
|
WebSyntaxScrollPane(WebSyntaxArea syntaxArea)
Constructs new syntax scrollpane with the specified syntax area inside.
|
WebSyntaxScrollPane(WebSyntaxArea syntaxArea,
boolean lineNumbers)
Constructs new syntax scrollpane with the specified syntax area inside.
|
WebSyntaxScrollPane(WebSyntaxArea syntaxArea,
boolean lineNumbers,
java.awt.Color lineNumberColor)
Constructs new syntax scrollpane with the specified syntax area inside.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addStyleListener(StyleListener listener)
Adds style change listener.
|
WebScrollPaneBar |
createHorizontalScrollBar() |
WebScrollPaneBar |
createVerticalScrollBar() |
Painter |
getCustomPainter()
Returns custom base painter for this component.
|
Painter |
getCustomPainter(java.lang.String id)
Returns custom painter for this component.
|
java.util.Map<java.lang.String,Painter> |
getCustomPainters()
Returns all custom painters for this component.
|
WebScrollPaneBar |
getHorizontalScrollBar() |
java.lang.String |
getLanguageContainerKey() |
java.awt.Insets |
getMargin()
Returns current margin.
|
int |
getMaximumHeight()
Returns component maximum height.
|
int |
getMaximumWidth()
Returns component maximum width.
|
int |
getMinimumHeight()
Returns component minimum height.
|
int |
getMinimumWidth()
Returns component minimum width.
|
java.awt.Insets |
getPadding()
Returns current padding.
|
int |
getPreferredHeight()
Returns component preferred height.
|
java.awt.Dimension |
getPreferredSize()
Returns component preferred size.
|
int |
getPreferredWidth()
Returns component preferred width.
|
Skin |
getSkin()
Returns skin currently applied to this component.
|
StyleId |
getStyleId()
Returns component style ID.
|
WebScrollPaneBar |
getVerticalScrollBar() |
protected void |
initialize(StyleId id)
Initializes default scrollpane styling.
|
java.awt.Shape |
provideShape()
Returns component shape.
|
void |
removeLanguageContainerKey() |
void |
removeStyleListener(StyleListener listener)
Removes style change listener.
|
boolean |
restoreDefaultPainters()
Restores default painters for this component.
|
Skin |
restoreSkin()
Restores global skin for this component and all of its children linked via
StyleId. |
Painter |
setCustomPainter(Painter painter)
Sets custom base painter for this component.
|
Painter |
setCustomPainter(java.lang.String id,
Painter painter)
Sets custom painter for this component under the specified painter ID.
|
void |
setGutterStyleId(StyleId id)
Sets gutter panel style ID.
|
void |
setLanguageContainerKey(java.lang.String key) |
void |
setMargin(java.awt.Insets margin)
Sets new margin.
|
void |
setMargin(int margin)
Sets new margin.
|
void |
setMargin(int top,
int left,
int bottom,
int right)
Sets new margin.
|
WebSyntaxScrollPane |
setMaximumHeight(int maximumHeight)
Sets component maximum height.
|
WebSyntaxScrollPane |
setMaximumWidth(int maximumWidth)
Sets component maximum width.
|
WebSyntaxScrollPane |
setMinimumHeight(int minimumHeight)
Sets component minimum height.
|
WebSyntaxScrollPane |
setMinimumWidth(int minimumWidth)
Sets component minimum width.
|
void |
setPadding(java.awt.Insets padding)
Sets new padding.
|
void |
setPadding(int padding)
Sets new padding.
|
void |
setPadding(int top,
int left,
int bottom,
int right)
Sets new padding.
|
WebSyntaxScrollPane |
setPreferredHeight(int preferredHeight)
Sets component preferred height.
|
WebSyntaxScrollPane |
setPreferredSize(int width,
int height)
Sets component preferred size.
|
WebSyntaxScrollPane |
setPreferredWidth(int preferredWidth)
Sets component preferred width.
|
Skin |
setSkin(Skin skin)
Applies specified skin to the specified component and all of its children linked via
StyleId. |
Skin |
setSkin(Skin skin,
boolean recursively)
Applies specified skin to the specified component and all of its children linked via
StyleId. |
StyleId |
setStyleId(StyleId id)
Sets new component style ID.
|
void |
updateUI()
Installs a Web-UI into this component.
|
getGutter, getLineNumbersEnabled, getTextArea, isFoldIndicatorEnabled, isIconRowHeaderEnabled, setFoldIndicatorEnabled, setIconRowHeaderEnabled, setLineNumbersEnabled, setViewportViewcreateViewport, getAccessibleContext, getColumnHeader, getCorner, getHorizontalScrollBarPolicy, getRowHeader, getUI, getUIClassID, getVerticalScrollBarPolicy, getViewport, getViewportBorder, getViewportBorderBounds, isValidateRoot, isWheelScrollingEnabled, paramString, setColumnHeader, setColumnHeaderView, setComponentOrientation, setCorner, setHorizontalScrollBar, setHorizontalScrollBarPolicy, setLayout, setRowHeader, setRowHeaderView, setUI, setVerticalScrollBar, setVerticalScrollBarPolicy, setViewport, setViewportBorder, setWheelScrollingEnabledaddAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, updateadd, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, transferFocusDownCycle, validate, validateTreeaction, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic WebSyntaxScrollPane()
public WebSyntaxScrollPane(WebSyntaxArea syntaxArea)
syntaxArea - WebSyntaxAreapublic WebSyntaxScrollPane(WebSyntaxArea syntaxArea, boolean lineNumbers)
syntaxArea - WebSyntaxArealineNumbers - whether or not should display line numberspublic WebSyntaxScrollPane(WebSyntaxArea syntaxArea, boolean lineNumbers, java.awt.Color lineNumberColor)
syntaxArea - WebSyntaxArealineNumbers - whether or not should display line numberslineNumberColor - line numbers foregroundpublic WebSyntaxScrollPane(StyleId id)
id - style IDpublic WebSyntaxScrollPane(StyleId id, WebSyntaxArea syntaxArea)
id - style IDsyntaxArea - WebSyntaxAreapublic WebSyntaxScrollPane(StyleId id, WebSyntaxArea syntaxArea, boolean lineNumbers)
id - style IDsyntaxArea - WebSyntaxArealineNumbers - whether or not should display line numberspublic WebSyntaxScrollPane(StyleId id, WebSyntaxArea syntaxArea, boolean lineNumbers, java.awt.Color lineNumberColor)
id - style IDsyntaxArea - WebSyntaxArealineNumbers - whether or not should display line numberslineNumberColor - line numbers foregroundprotected void initialize(StyleId id)
id - style IDpublic WebScrollPaneBar createHorizontalScrollBar()
createHorizontalScrollBar in class javax.swing.JScrollPanepublic WebScrollPaneBar getHorizontalScrollBar()
getHorizontalScrollBar in class javax.swing.JScrollPanepublic WebScrollPaneBar createVerticalScrollBar()
createVerticalScrollBar in class javax.swing.JScrollPanepublic WebScrollPaneBar getVerticalScrollBar()
getVerticalScrollBar in class javax.swing.JScrollPanepublic StyleId getStyleId()
StyleablegetStyleId in interface Styleablepublic StyleId setStyleId(StyleId id)
StyleablesetStyleId in interface Styleableid - custom component style IDpublic void setGutterStyleId(StyleId id)
id - gutter panel style IDpublic Skin getSkin()
Skinnablepublic Skin setSkin(Skin skin, boolean recursively)
Skinnablepublic Skin restoreSkin()
SkinnableStyleId.
Actual linked children information is stored within StyleData data objects.
Restoring component skin will also include it back into the skin update cycle in case global skin will be changed.restoreSkin in interface Skinnablepublic void addStyleListener(StyleListener listener)
SkinnableaddStyleListener in interface Skinnablelistener - style change listener to addpublic void removeStyleListener(StyleListener listener)
SkinnableremoveStyleListener in interface Skinnablelistener - style change listener to removepublic java.util.Map<java.lang.String,Painter> getCustomPainters()
PaintablegetCustomPainters in interface Paintablepublic Painter getCustomPainter()
PaintablegetCustomPainter in interface Paintablepublic Painter getCustomPainter(java.lang.String id)
PaintablegetCustomPainter in interface Paintableid - painter IDpublic Painter setCustomPainter(Painter painter)
PaintablesetCustomPainter in interface Paintablepainter - custom base painterpublic Painter setCustomPainter(java.lang.String id, Painter painter)
PaintablesetCustomPainter in interface Paintableid - painter IDpainter - painterpublic boolean restoreDefaultPainters()
PaintablerestoreDefaultPainters in interface Paintablepublic java.awt.Shape provideShape()
ShapeProviderprovideShape in interface ShapeProviderpublic java.awt.Insets getMargin()
MarginSupportgetMargin in interface MarginSupportpublic void setMargin(int margin)
margin - new marginpublic void setMargin(int top,
int left,
int bottom,
int right)
top - new top marginleft - new left marginbottom - new bottom marginright - new right marginpublic void setMargin(java.awt.Insets margin)
MarginSupportnull can be provided to set an empty [0,0,0,0] margin.setMargin in interface MarginSupportmargin - new marginpublic java.awt.Insets getPadding()
PaddingSupportgetPadding in interface PaddingSupportpublic void setPadding(int padding)
padding - new paddingpublic void setPadding(int top,
int left,
int bottom,
int right)
top - new top paddingleft - new left paddingbottom - new bottom paddingright - new right paddingpublic void setPadding(java.awt.Insets padding)
PaddingSupportnull can be provided to set an empty [0,0,0,0] padding.setPadding in interface PaddingSupportpadding - new paddingpublic void updateUI()
updateUI in class javax.swing.JScrollPanepublic int getPreferredWidth()
SizeMethodsgetPreferredWidth in interface SizeMethods<WebSyntaxScrollPane>public WebSyntaxScrollPane setPreferredWidth(int preferredWidth)
SizeMethodsSizeMethods.UNDEFINED to let component choose preferred width on its own.setPreferredWidth in interface SizeMethods<WebSyntaxScrollPane>preferredWidth - new component preferred widthpublic int getPreferredHeight()
SizeMethodsgetPreferredHeight in interface SizeMethods<WebSyntaxScrollPane>public WebSyntaxScrollPane setPreferredHeight(int preferredHeight)
SizeMethodsSizeMethods.UNDEFINED to let component choose preferred height on its own.setPreferredHeight in interface SizeMethods<WebSyntaxScrollPane>preferredHeight - new component preferred heightpublic int getMinimumWidth()
SizeMethodsgetMinimumWidth in interface SizeMethods<WebSyntaxScrollPane>public WebSyntaxScrollPane setMinimumWidth(int minimumWidth)
SizeMethodsSizeMethods.UNDEFINED to let component choose minimum width on its own.setMinimumWidth in interface SizeMethods<WebSyntaxScrollPane>minimumWidth - new component minimum widthpublic int getMinimumHeight()
SizeMethodsgetMinimumHeight in interface SizeMethods<WebSyntaxScrollPane>public WebSyntaxScrollPane setMinimumHeight(int minimumHeight)
SizeMethodsSizeMethods.UNDEFINED to let component choose minimum height on its own.setMinimumHeight in interface SizeMethods<WebSyntaxScrollPane>minimumHeight - new component minimum heightpublic int getMaximumWidth()
SizeMethodsgetMaximumWidth in interface SizeMethods<WebSyntaxScrollPane>public WebSyntaxScrollPane setMaximumWidth(int maximumWidth)
SizeMethodsSizeMethods.UNDEFINED to let component choose maximum width on its own.setMaximumWidth in interface SizeMethods<WebSyntaxScrollPane>maximumWidth - new component maximum widthpublic int getMaximumHeight()
SizeMethodsgetMaximumHeight in interface SizeMethods<WebSyntaxScrollPane>public WebSyntaxScrollPane setMaximumHeight(int maximumHeight)
SizeMethodsSizeMethods.UNDEFINED to let component choose maximum height on its own.setMaximumHeight in interface SizeMethods<WebSyntaxScrollPane>maximumHeight - new component maximum heightpublic java.awt.Dimension getPreferredSize()
SizeMethodsgetPreferredSize in interface SizeMethods<WebSyntaxScrollPane>getPreferredSize in class javax.swing.JComponentpublic WebSyntaxScrollPane setPreferredSize(int width, int height)
SizeMethodssetPreferredSize in interface SizeMethods<WebSyntaxScrollPane>width - component preferred widthheight - component preferred heightpublic void setLanguageContainerKey(java.lang.String key)
setLanguageContainerKey in interface com.alee.managers.language.LanguageContainerMethodspublic void removeLanguageContainerKey()
removeLanguageContainerKey in interface com.alee.managers.language.LanguageContainerMethodspublic java.lang.String getLanguageContainerKey()
getLanguageContainerKey in interface com.alee.managers.language.LanguageContainerMethods