LPEX
4.4.0

com.ibm.lpex.alef
Class LpexLineChangeInformationControl

java.lang.Object
  extended by com.ibm.lpex.alef.LpexLineChangeInformationControl

public class LpexLineChangeInformationControl
extends Object

Quick diff information control for LPEX. Uses an LPEX widget.


Constructor Summary
LpexLineChangeInformationControl(Shell parent, LpexView parentView, boolean isResizable, String statusFieldText)
          Creates a quick-diff information control for the specified document view.
 
Method Summary
 void addDisposeListener(DisposeListener listener)
           
 void addFocusListener(FocusListener listener)
           
 Point computeSizeConstraints(int widthInChars, int heightInChars)
           
 Point computeSizeHint()
           
 Rectangle computeTrim()
           
 boolean containsControl(Control control)
           
 void dispose()
           
 Rectangle getBounds()
           
 IInformationControlCreator getInformationPresenterControlCreator()
           
 boolean hasContents()
           
 boolean isFocusControl()
           
 boolean isVisible()
           
 void removeDisposeListener(DisposeListener listener)
           
 void removeFocusListener(FocusListener listener)
           
 boolean restoresLocation()
           
 boolean restoresSize()
           
 void setBackgroundColor(Color background)
           
 void setFocus()
           
 void setForegroundColor(Color foreground)
           
 void setInformation(String content)
           
 void setLocation(Point location)
           
 void setSize(int width, int height)
           
 void setSizeConstraints(int maxWidth, int maxHeight)
           
 void setVisible(boolean visible)
           
 void widgetDisposed(DisposeEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LpexLineChangeInformationControl

public LpexLineChangeInformationControl(Shell parent,
                                        LpexView parentView,
                                        boolean isResizable,
                                        String statusFieldText)
Creates a quick-diff information control for the specified document view. This is the primary view in the associated LpexSourceViewer.

An LpexView and an associated LpexWindow are created. The quick-diff decorations prepended to each line of text in this information control are set as sequence numbers, and displayed in the view's prefix area. No document parser is activated.

Parameters:
parent - the parent shell
parentView - the parent LpexView for which the quick-diff information is displayed
isResizable - indicates whether the control is resizable
statusFieldText - the text to be used in the optional status field or null if the status field should be hidden
Since:
4.2
Method Detail

setInformation

public void setInformation(String content)

setVisible

public void setVisible(boolean visible)

dispose

public void dispose()

widgetDisposed

public void widgetDisposed(DisposeEvent event)

setSize

public void setSize(int width,
                    int height)

setLocation

public void setLocation(Point location)

setSizeConstraints

public void setSizeConstraints(int maxWidth,
                               int maxHeight)

computeSizeHint

public Point computeSizeHint()

addDisposeListener

public void addDisposeListener(DisposeListener listener)

removeDisposeListener

public void removeDisposeListener(DisposeListener listener)

setForegroundColor

public void setForegroundColor(Color foreground)

setBackgroundColor

public void setBackgroundColor(Color background)

isFocusControl

public boolean isFocusControl()

setFocus

public void setFocus()

addFocusListener

public void addFocusListener(FocusListener listener)

removeFocusListener

public void removeFocusListener(FocusListener listener)

hasContents

public boolean hasContents()

computeTrim

public Rectangle computeTrim()
Since:
4.2

getBounds

public Rectangle getBounds()
Since:
4.2

restoresLocation

public boolean restoresLocation()
Since:
4.2

restoresSize

public boolean restoresSize()
Since:
4.2

computeSizeConstraints

public Point computeSizeConstraints(int widthInChars,
                                    int heightInChars)
Since:
4.2

containsControl

public boolean containsControl(Control control)
Since:
4.2

getInformationPresenterControlCreator

public IInformationControlCreator getInformationPresenterControlCreator()
Since:
4.2

isVisible

public boolean isVisible()
Since:
4.2

LPEX
4.4.0

Copyright � 2016 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.