public class OutputPanel extends JPanel implements ExecuteGradleCommandServerProtocol.ExecutionInteraction
| Modifier and Type | Class and Description |
|---|---|
static interface |
OutputPanel.OutputPanelParent |
JPanel.AccessibleJPanelJComponent.AccessibleJComponentContainer.AccessibleAWTContainerComponent.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategyaccessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOWBOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENTABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH| Constructor and Description |
|---|
OutputPanel(GradlePluginLord gradlePluginLord,
OutputPanel.OutputPanelParent parent,
AlternateUIInteraction alternateUIInteraction) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canBeReusedNow()
Determines if this panel is ready to be reused.
|
boolean |
close() |
boolean |
getOnlyShowOutputOnErrors() |
Request |
getRequest() |
void |
initialize()
Call this after initializing this, but after setting any additional swing properties (actually, just the font for now).
|
boolean |
isBusy() |
boolean |
isPending() |
boolean |
isPinned() |
void |
reportExecutionFinished(boolean wasSuccessful,
BuildResult buildResult,
String output)
Notification that execution of all tasks has completed.
|
void |
reportExecutionFinished(boolean wasSuccessful,
String output,
Throwable throwable)
Notification that execution of a task has completed.
|
void |
reportExecutionStarted()
Notification that execution of a task or tasks has been started.
|
void |
reportFatalError(String message) |
void |
reportLiveOutput(String output)
Report real-time output from gradle and its subsystems (such as ant).
|
void |
reportNumberOfTasksToExecute(int size)
Notification of the total number of tasks that will be executed.
|
void |
reportTaskComplete(String currentTaskName,
float percentComplete) |
void |
reportTaskStarted(String currentTaskName,
float percentComplete)
Notification that a single task has completed.
|
void |
reset()
Call this before you use this.
|
protected void |
setBusy(boolean busy) |
void |
setFont(Font font)
Sets the font for this component.
|
void |
setOnlyShowOutputOnErrors(boolean value) |
void |
setPinned(boolean pinned) |
void |
setRequest(Request request,
boolean onlyShowOutputOnErrors)
This is called whenever a new request is made.
|
boolean |
stop()
This stops the currently executing task if any exists.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUIaddAncestorListener, 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, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, 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, 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, setLayout, 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, hide, 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, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCyclepublic OutputPanel(GradlePluginLord gradlePluginLord, OutputPanel.OutputPanelParent parent, AlternateUIInteraction alternateUIInteraction)
public void initialize()
public void setRequest(Request request, boolean onlyShowOutputOnErrors)
public boolean isPinned()
public void setPinned(boolean pinned)
public boolean isBusy()
protected void setBusy(boolean busy)
public boolean isPending()
public Request getRequest()
public void reset()
public void reportExecutionStarted()
reportExecutionStarted in interface ExecuteGradleCommandServerProtocol.ExecutionInteractionpublic void reportNumberOfTasksToExecute(int size)
reportNumberOfTasksToExecute in interface ExecuteGradleCommandServerProtocol.ExecutionInteractionsize - the total number of tasks.public void reportExecutionFinished(boolean wasSuccessful,
BuildResult buildResult,
String output)
wasSuccessful - whether or not gradle encountered errors.buildResult - contains more detailed information about the result of a build.output - the text that gradle produced. May contain error information, but is usually just status.public void reportExecutionFinished(boolean wasSuccessful,
String output,
Throwable throwable)
reportExecutionFinished in interface ExecuteGradleCommandServerProtocol.ExecutionInteractionwasSuccessful - whether or not gradle encountered errors.output - the text that gradle produced. May contain error information, but is usually just status.throwable - an exception if one occurredpublic void reportTaskStarted(String currentTaskName, float percentComplete)
reportTaskStarted in interface ExecuteGradleCommandServerProtocol.ExecutionInteractioncurrentTaskName - the task being executedpercentComplete - the percent complete of all the tasks that make up the task you requested.public void reportTaskComplete(String currentTaskName, float percentComplete)
reportTaskComplete in interface ExecuteGradleCommandServerProtocol.ExecutionInteractionpublic void reportFatalError(String message)
public void reportLiveOutput(String output)
reportLiveOutput in interface ExecuteGradleCommandServerProtocol.ExecutionInteractionoutput - a single line of text to show.public boolean canBeReusedNow()
public void setOnlyShowOutputOnErrors(boolean value)
public boolean getOnlyShowOutputOnErrors()
public boolean close()
public boolean stop()
public void setFont(Font font)
setFont in class JComponentfont - the desired Font for this componentComponent.getFont()Copyright © 2013. All rights reserved