private void replaceLine(String newName, String time, int lineIndex)
	{
        try
        {
	        Element element = getDocumentElementForIndex(lineIndex);
	        if (element!=null)
	        {
		        Element TextElement = element.getElement(0).getElement(0).getElement(0);
		        Element TimeElement = element.getElement(1).getElement(0).getElement(0);
		        getPlaylistTextArea().getDocument().remove(TextElement.getStartOffset(), TextElement.getEndOffset() - TextElement.getStartOffset());
		        getPlaylistTextArea().getDocument().insertString(TextElement.getStartOffset(), newName, TextElement.getAttributes());
		        getPlaylistTextArea().getDocument().remove(TimeElement.getStartOffset(), TimeElement.getEndOffset() - TimeElement.getStartOffset());
		        getPlaylistTextArea().getDocument().insertString(TimeElement.getStartOffset(), time, TimeElement.getAttributes());
	        }
        }
        catch (BadLocationException ex)
        {
        	Log.error("PlayListGUI::replaceLine", ex);
        }
	}
private void replaceLine ( String newName , String time , int lineIndex ) { try { Element element = getDocumentElementForIndex ( lineIndex ) ; if ( element != null ) { Element TextElement = element . getElement ( 0 ) . getElement ( 0 ) . getElement ( 0 ) ; Element TimeElement = element . getElement ( 1 ) . getElement ( 0 ) . getElement ( 0 ) ; getPlaylistTextArea ( ) . getDocument ( ) . remove ( TextElement . getStartOffset ( ) , TextElement . getEndOffset ( ) - TextElement . getStartOffset ( ) ) ; getPlaylistTextArea ( ) . getDocument ( ) . insertString ( TextElement . getStartOffset ( ) , newName , TextElement . getAttributes ( ) ) ; getPlaylistTextArea ( ) . getDocument ( ) . remove ( TimeElement . getStartOffset ( ) , TimeElement . getEndOffset ( ) - TimeElement . getStartOffset ( ) ) ; getPlaylistTextArea ( ) . getDocument ( ) . insertString ( TimeElement . getStartOffset ( ) , time , TimeElement . getAttributes ( ) ) ; } } catch ( BadLocationException ex ) { Log . error ( "PlayListGUI::replaceLine" , ex ) ; } }
@since 03.04.2011
@param newName
@param time
@param lineIndex