Skip to main content

Link

Struct Link 

Source
pub struct Link<'a> { /* private fields */ }
Expand description

액션을 수행하거나 링크로 이동하는 하이퍼링크

Implementations§

Source§

impl<'a> Link<'a>

Source

pub fn new(id: Cow<'static, str>, element_ref: ElementRef<'a>) -> Self

Creates a new element from an id and element reference.

Source§

impl<'a> Link<'a>

Source

pub fn text(&self) -> &str

내부 텍스트를 반환합니다.

Source

pub fn activate(&self, ctrl: bool, shift: bool) -> Result<Event, WebDynproError>

링크 활성화 이벤트를 반환합니다. ctrl 이나 shift 가 참일 경우 각 버튼을 누른 채로 클릭한 것으로 간주합니다.

Source

pub fn double_click(&self) -> Result<Event, WebDynproError>

더블 클릭 이벤트를 반환합니다.

Trait Implementations§

Source§

impl Display for Link<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> Element<'a> for Link<'a>

Source§

const CONTROL_ID: &'static str = "LN"

WebDynpro 상에서 사용하는 엘리먼트의 Id
Source§

const ELEMENT_NAME: &'static str = "Link"

WebDynpro 상에서 사용하는 엘리먼트의 이름
Source§

type ElementLSData = LinkLSData

엘리먼트의 LSData
Source§

type Def = LinkDef

엘리먼트의 정의
Source§

fn lsdata(&self) -> &Self::ElementLSData

엘리먼트의 LSData를 가져옵니다.
Source§

fn from_ref( element_def: &impl ElementDefinition<'a>, element: ElementRef<'a>, ) -> Result<Self, WebDynproError>

엘리먼트 정의와 ElementRef에서 엘리먼트를 가져옵니다.
Source§

fn id(&self) -> &str

엘리먼트의 Id를 가져옵니다.
Source§

fn element_ref(&self) -> &ElementRef<'a>

엘리먼트의 ElementRef를 가져옵니다.
Source§

fn wrap(self) -> ElementWrapper<'a>

엘리먼트를 ElementWrapper로 감쌉니다.
Source§

fn children(&self) -> Vec<ElementWrapper<'a>>

엘리먼트의 자식 엘리먼트를 가져옵니다.
Source§

impl<'a> Interactable<'a> for Link<'a>

Source§

fn lsevents(&self) -> Option<&EventParameterMap>

주어진 엘리먼트의 이벤트 데이터를 반환합니다.
Source§

unsafe fn fire_event_unchecked( event: String, parameters: HashMap<String, String>, ucf_params: UcfParameters, custom_params: HashMap<String, String>, ) -> Event

엘리먼트가 이벤트를 발생시킬 수 있는가와 관계 없이 이벤트를 발생시킵니다. Read more
Source§

fn event_parameter( &self, event: &str, ) -> Result<&(UcfParameters, HashMap<String, String>), ElementError>

엘리먼트의 주어진 이벤트에 대한 파라메터들을 가져옵니다.
Source§

fn fire_event( &self, event: String, parameters: HashMap<String, String>, ) -> Result<Event, WebDynproError>

엘리먼트의 주어진 이벤트를 발생시킵니다.
Source§

impl<'a> TryFrom<ElementWrapper<'a>> for Link<'a>

Source§

type Error = BodyError

The type returned in the event of a conversion error.
Source§

fn try_from(wrapper: ElementWrapper<'a>) -> Result<Link<'a>, Self::Error>

Performs the conversion.

Auto Trait Implementations§

§

impl<'a> !Freeze for Link<'a>

§

impl<'a> !RefUnwindSafe for Link<'a>

§

impl<'a> !Send for Link<'a>

§

impl<'a> !Sync for Link<'a>

§

impl<'a> Unpin for Link<'a>

§

impl<'a> UnsafeUnpin for Link<'a>

§

impl<'a> !UnwindSafe for Link<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more